nyastodon/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 Merge branch 'master' into glitch-soc/merge-upstream 2020-09-01 17:02:18 +02:00
configuration.js Refactor compile-time glitch-soc theme handling 2022-02-11 23:49:00 +01:00
development.js Bump webpack-merge from 4.2.2 to 5.0.9 (#14424) 2020-11-05 02:21:28 +09:00
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