-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate if we can reduce translations file size in JS #2687
Labels
Comments
Checking its docs I'm seeing really interesting things, as: Create multiple files by language: translations:
- file: 'public/javascripts/en.js'
only: 'en.*'
- file: 'public/javascripts/pt-BR.js'
only: 'pt-BR.*' Use loops in the config file: translations:
<% Widgets.each do |widget| %>
- file: <%= "'#{widget.file}'" %>
only: <%= "'#{widget.only}'" %>
<% end %> We might split translations into files such as: es.gobierto_MODULE.js
ca.gobierto_MODULE.js
es.gobierto_common.js
... In such a way that the import would bring only the current locale files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Crashillo has been investigating a bit how to reduce the size of the JS packs by reducing the translations file:
check the namespaces in ignore-missing and ignore-unused. These options were filled with keys used in JS because Ruby wasn't able to detect them. It seems that it has been improved and we can check again
investigate if we can skip English translations when dumping the JS file
The text was updated successfully, but these errors were encountered: