mastodon/config/webpack
Claire a5e446a4a0
Change locales file generation to use JSON sources (#2028)
* Change locales file generation to use JSON sources

Instead of inheriting in JS files, set locale inheritance in the
theme's YML file, and inherit in the generated locale file, rather
than the source file.

* Convert glitch-soc JS translation files to JSON

Obtained running the following:

```sh
sed -i -z "s/import inherited from '.*';\s*\nconst messages = //" *.js
sed -i "s/\s*\/\/.*//" *.js
sed -i -z "s/;\s*export default .*/\n/" *.js
for i in *.js; do
  json5 $i | json_pp > ${i}on;
done
```

* Change `yarn manage:translations` to exclude any translation already defined upstream

* Run yarn manage:translations
2022-12-21 22:13:14 +01:00
..
rules
configuration.js Refactor compile-time glitch-soc theme handling 2022-02-11 23:49:00 +01:00
development.js
generateLocalePacks.js Change locales file generation to use JSON sources (#2028) 2022-12-21 22:13:14 +01:00
production.js Add brotli compression (#19025) 2022-12-15 17:07:36 +01:00
shared.js Merge branch 'main' into glitch-soc/merge-upstream 2022-04-04 17:25:57 +02:00
tests.js Bump jest from 26.6.3 to 27.1.0 (#16376) 2021-08-28 09:58:04 +09:00
translationRunner.js Change locales file generation to use JSON sources (#2028) 2022-12-21 22:13:14 +01:00