mastodon/app/javascript/flavours/glitch
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
..
actions [Glitch] Fix being unable to react with the keycap number sign emoji (#2004) 2022-12-17 11:34:39 +01:00
components [Glitch] Change dropdown menu to contain “Copy link to post” even for non-public posts 2022-12-15 20:47:58 +01:00
containers [Glitch] Fix wasteful request to /api/v1/custom_emojis when not logged in 2022-12-15 20:46:21 +01:00
features Reuse upstream's “Posts and replies” as column heading (#2023) 2022-12-20 12:37:14 +01:00
images
locales Change locales file generation to use JSON sources (#2028) 2022-12-21 22:13:14 +01:00
middleware
packs [Glitch] Render current day formats in the client timezone 2022-12-15 20:57:17 +01:00
reducers [Glitch] Add follow request banner on account header 2022-12-15 21:11:32 +01:00
selectors
store
styles [Glitch] Add follow request banner on account header 2022-12-15 21:11:32 +01:00
utils
api.js
base_polyfills.js
blurhash.js
compare_id.js
extra_polyfills.js
initial_state.js [Glitch] Change “Translate” button to only show up when a translation backend is configured 2022-11-30 13:53:38 +01:00
is_mobile.js
load_keyboard_extensions.js
load_polyfills.js
main.js [Glitch] Delay workbox import 2022-11-12 13:55:02 +01:00
names.yml initial translation of Glitch-specific texts into Czech (#1997) 2022-12-08 10:38:52 +01:00
performance.js
permissions.js
ready.js
scroll.js
settings.js
stream.js
theme.yml Change locales file generation to use JSON sources (#2028) 2022-12-21 22:13:14 +01:00
uuid.js