element-web/scripts
David Baker 13696af194
Split translations between EW and shared components (#31441)
* Split translations between EW and shared components

Uses update module API with global TranslationKey type that can be
overridden.

WIP.

* Removed the wrong script (for now)

* Add the type files

* Add shared components i18n file

* More i18n strings

* Add i18n check for shared conmponents

* Needs a different name

* rerun i18n for merge from develop, fix test

* Move translated strings to shared components file

NB. there are lots of removed strings for a few languages where we
seem to have hit a localazy bug or something where the key/value
for plurals got switched, making the translations invalid. They've
been missing for a while so I'm removing them rather than trying to
restore them,

* Add shared components files to localazy

* Merge element web & shared component translations

for the built app

* Use right translations for shared component tests

and fix missign en_EN strings

* Pull shared components translations too

* Fix/disable warnings

* We can now remove the build:res call

...right? (right?)

* Remove webpack import for languages index

..and just load it using a relative path which we do for the individual
language files and also did anyway for the index because even in non-test
it was an object, not a string, so we always usesd the 'test' code path.

* Make the storybook language selector work

...without referring to the parent app's files

* Revert unnecessary yarn lock change

* Typo

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Add comment on why we use merge

* Fix localazy download config

to actually put the translations in the right place

* Better typescript syntax

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Watch both translations files

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-07 11:49:01 +00:00
..
analyse_unused_exports.ts OIDC settings tweaks (#28787) 2024-12-23 22:35:43 +00:00
ci_package.sh Don't hardcode /bin/bash in scripts (#23740) 2022-11-09 09:58:06 -05:00
cleanup.sh Fix cleanup script not to remove extracted/bundles directories (#8764) 2019-02-18 17:05:48 +00:00
copy-res.ts Split translations between EW and shared components (#31441) 2026-01-07 11:49:01 +00:00
deploy.py Adding tarfile member sanitization to extractall() (#23906) 2022-12-05 17:03:17 +00:00
docker-link-repos.sh Iterate 2024-10-15 15:45:19 +01:00
docker-package.sh Install shared components during EW install (#31196) 2025-11-11 13:35:39 +00:00
fetchdep.sh Make fetchdep check out matching branch name (#29601) 2025-03-27 13:54:05 +00:00
gen-workflow-mermaid.ts Fix gen-workflow-mermaid to be compatible with Node 22.18+ (#31250) 2025-11-17 10:33:45 +00:00
get-version-from-git.sh Simplify layered workflows around version string generation (#30865) 2025-09-24 16:09:13 +00:00
issues-burndown.pl Update org in scripts and workflows 2023-12-12 10:31:44 +00:00
issues-no-state.pl Update org in scripts and workflows 2023-12-12 10:31:44 +00:00
layered.sh Install shared components during EW install (#31196) 2025-11-11 13:35:39 +00:00
make-react-component.js Update to React 18 (#24763) 2024-10-21 13:50:06 +00:00
normalize-version.sh Don't hardcode /bin/bash in scripts (#23740) 2022-11-09 09:58:06 -05:00
package.sh Make the version file part of webpack output (#28461) 2024-11-15 09:04:00 +00:00