diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 732c34fa3d..4118c2ec2f 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1,8 +1,11 @@ { + "other_output_files": "Other output files", + "toggle_output_files_list": "Toggle output files list", "n_warnings": "__count__ warning", "n_warnings_plural": "__count__ warnings", "n_errors": "__count__ error", "n_errors_plural": "__count__ errors", + "toggle_compile_options_menu": "Toggle compile options menu", "view_pdf": "View PDF", "your_project_has_errors": "Your project has errors", "view_warnings": "View warnings", @@ -1105,6 +1108,7 @@ "remove_collaborator": "Remove collaborator", "add_to_folders": "Add to folders", "download_zip_file": "Download .zip File", + "download_file": "Download <0>__type__ file", "price": "Price", "close": "Close", "keybindings": "Keybindings", diff --git a/services/web/scripts/translations/download.js b/services/web/scripts/translations/download.js index 02331ef7a0..a1295c8da9 100644 --- a/services/web/scripts/translations/download.js +++ b/services/web/scripts/translations/download.js @@ -19,6 +19,13 @@ async function run() { const json = JSON.parse(content) for (const [code, lang] of Object.entries(json)) { + if (code === 'en-GB') { + // OneSky does not have read-after-write consistency. + // Skip the dump of English locales, which may not include locales + // that were just uploaded. + continue + } + for (let [key, value] of Object.entries(lang.translation)) { // Handle multi-line strings as arrays by joining on newline if (Array.isArray(value)) { @@ -27,9 +34,8 @@ async function run() { lang.translation[key] = sanitize(value) } - const outputLngCode = code === 'en-GB' ? 'en' : code await fs.writeFile( - `${__dirname}/../../locales/${outputLngCode}.json`, + `${__dirname}/../../locales/${code}.json`, JSON.stringify(lang.translation, null, 2) + '\n' ) }