-
Notifications
You must be signed in to change notification settings - Fork 45
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
Generate language list dynamically #125
Labels
Comments
blazeu
changed the title
Generate locale list dynamically
Generate language list dynamically
Jan 2, 2018
Open
I have an issue with this. Webpack bundles all js files before I can add my own with the translations hash list. |
You should take advantage of the bundling, use The file should be generated before the bundling happens, obviously. |
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 14, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Closes: coala#125
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 14, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Adds tests. Renames ``nb_NO.json`` to ``nb-NO.json`` to comply with RFC standards. Closes: coala#125
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 15, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Adds tests. Renames ``nb_NO.json`` to ``nb-NO.json`` to comply with RFC standards. Closes: coala#125
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 15, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Adds tests. Renames ``nb_NO.json`` to ``nb-NO.json`` to comply with RFC standards. Closes: coala#125
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 15, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Adds tests. Closes: coala#125
mooncos
added a commit
to mooncos/gci-leaders
that referenced
this issue
Jan 15, 2018
This adds ``langParser.js`` to generate the available language list automatically from available translation files. This also adds a npm script for generating before webpack bundles. Modifies .gitignore so that generated ``languages.js`` file is ignored. Adds tests. Closes: coala#125
Closed
supunTE
added a commit
to supunTE/gci-leaders
that referenced
this issue
Dec 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gci-leaders/src/js/locale.js
Lines 29 to 34 in 9a170ec
It needs to be generated dynamically, from the locale files that exists in static/i18n to support #124.
We can generate a JSON file and
import
that file to replace the JS object in locale.jsThe language name can come from a npm package, but do not include that package in the client side js as to not bloat it.
The text was updated successfully, but these errors were encountered: