Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121)
* Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n * Removing CODEOWNERS
This commit is contained in:
Родитель
f00f09a0d5
Коммит
024aade152
|
@ -1 +0,0 @@
|
|||
extension/_locales/en_US/*.json @flodolo
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "extension/_locales"]
|
||||
path = extension/_locales
|
||||
url = https://github.com/mozilla-l10n/firefox-translations-l10n/
|
|
@ -0,0 +1 @@
|
|||
Subproject commit edeec53a0c07572fc5a7d4f2f9ec450ff8afbbec
|
|
@ -1,82 +0,0 @@
|
|||
{
|
||||
"extensionName": {
|
||||
"message": "Firefox Translations",
|
||||
"description": "Name of the extension. Do NOT translate, keep the name in English."
|
||||
},
|
||||
"extensionDescription": {
|
||||
"message": "Translate websites in your browser without using the cloud.",
|
||||
"description": "Description of the extension."
|
||||
},
|
||||
"loadingTranslationEngine": {
|
||||
"message": "Loading Translation Engine…",
|
||||
"description": "Tells the user the translation engine is being loaded."
|
||||
},
|
||||
"translationLoadedWithErrors": {
|
||||
"message": "Automatic translation is enabled but we found errors.",
|
||||
"description": "Tells the user the translation engine was loaded but errors were found."
|
||||
},
|
||||
"checksumErrorsDownloadingEngine": {
|
||||
"message": "We found checksum errors when downloading the translation engine.",
|
||||
"description": "Tells the user there were errors downloading the translation engine."
|
||||
},
|
||||
"notfoundErrorsDownloadingEngine": {
|
||||
"message": "We could not find the translation engine to download.",
|
||||
"description": "Tells the user the translation engine could not be found to download."
|
||||
},
|
||||
"nodataDownloadingEngine": {
|
||||
"message": "We found no data when downloading the translation engine.",
|
||||
"description": "Tells the user the translation engine had not data when downloading."
|
||||
},
|
||||
"translationEnabled": {
|
||||
"message": "Automatic Translation enabled.",
|
||||
"description": "Tells the user the automatic translation was enabled."
|
||||
},
|
||||
"translationEnabledNoOT": {
|
||||
"message": "Automatic Translation enabled but translation of forms is not supported for this language.",
|
||||
"description": "Tells the user the automatic translation was enabled but form translations is not supported."
|
||||
},
|
||||
"timeoutDownloadingEngine": {
|
||||
"message": "Timeout downloading the translation engine.",
|
||||
"description": "Tells the user the download of the translation engine timed out."
|
||||
},
|
||||
"errorLoadingWasm": {
|
||||
"message": "We found an error loading the translation engine.",
|
||||
"description": "Tells the user we found and error loading the translation engine."
|
||||
},
|
||||
"statsMessage": {
|
||||
"message": "Translation enabled. Words translated per second: $WORDSPERSECOND$.",
|
||||
"description": "Tells the user that translation is enabled and the current performance metric of words translated per second.",
|
||||
"placeholders": {
|
||||
"wordspersecond" : {
|
||||
"content" : "$1",
|
||||
"example" : "500"
|
||||
}
|
||||
}
|
||||
},
|
||||
"downloadProgress": {
|
||||
"message": "Downloaded (bytes): $RECEIVEDLENGTH$ of $CONTENTLENGTH$.",
|
||||
"description": "Tells the user the download progress of the engine artifacts.",
|
||||
"placeholders": {
|
||||
"receivedlength" : {
|
||||
"content" : "$1",
|
||||
"example" : "100"
|
||||
},
|
||||
"contentlength" : {
|
||||
"content" : "$2",
|
||||
"example" : "1000"
|
||||
}
|
||||
}
|
||||
},
|
||||
"displayStatisticsMessage": {
|
||||
"message": "Display statistics",
|
||||
"description": "Option in menu to show statistics in the infobar (display is intended as a verb)."
|
||||
},
|
||||
"outboundTranslationsMessage": {
|
||||
"message": "Enable translations of forms",
|
||||
"description": "Checkbox to enable the translation of forms."
|
||||
},
|
||||
"qualityEstimationMessage": {
|
||||
"message": "Enable quality estimation",
|
||||
"description":"Checkbox to enable the quality estimation of the translation."
|
||||
}
|
||||
}
|
|
@ -3,12 +3,13 @@
|
|||
"scripts": {
|
||||
"test": "python scripts/tests/e2e-tests.py",
|
||||
"lint:js": "eslint -c .eslintrc.js extension",
|
||||
"build": "web-ext build -s extension --overwrite-dest --no-config-discovery -n firefox_translations.xpi",
|
||||
"format": "prettier 'extension/*.{js,css}' --tab-width=2 --arrow-parens=always --trailing-comma=es5 --no-bracket-spacing --write",
|
||||
"build": "npm run update-localization; web-ext build -s extension --overwrite-dest --no-config-discovery -n firefox_translations.xpi",
|
||||
"lint:extension": "web-ext lint -s extension",
|
||||
"once": "web-ext run -s extension --verbose --firefox nightly --no-config-discovery --pref=extensions.experiments.enabled=true --pref=extensions.translations.disabled=false --pref=javascript.options.wasm_simd_wormhole=true --pref=datareporting.healthreport.uploadEnabled=false",
|
||||
"once": "npm run update-localization; web-ext run -s extension --verbose --firefox nightly --no-config-discovery --pref=extensions.experiments.enabled=true --pref=extensions.translations.disabled=false --pref=javascript.options.wasm_simd_wormhole=true --pref=datareporting.healthreport.uploadEnabled=false",
|
||||
"package": "npm run build && mv web-ext-artifacts/*.zip addon.xpi",
|
||||
"setup-webext": "npm install -g web-ext"
|
||||
"setup-webext": "npm install -g web-ext",
|
||||
"clean-localization-folder": "rm -rf extension/_locales/.github",
|
||||
"update-localization": "git submodule init && git submodule update --remote --depth 1 extension/_locales; npm run clean-localization-folder"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.32.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче