RETIRED The UI component for TripleO
Go to file
Honza Pokorny 5c9a687bb7 Automatically enable all available languages
Right now, we have to create at least two patches for each new language that
becomes available: one to update the tripleo-ui itself, and one to update the
defaults in the puppet code.  This is painful and takes a long time.

This patch turns things around.  Instead of specifying which languages should be
available, we automatically load all of them, and provide users with a way of
disabling some of them should they need to.  When a new language is imported
from the translation team into our code, there is no work necessary.

This is accomplished via Webpack plugin which reads the i18n/locales directory,
parses the data, and generates a Javascript file with the necessary imports and
other useful objects.  The "languages" setting in the config file is changed to
"excludedLanguages", and it's a simple list of language abbreviations.

Futhermore, this patch adds a simple script that verifies that all available
languages are properly enabled i the constants file.

Closes-Bug: #1682452
Change-Id: Idf5a3314c19be18ca6cabbae1e94bc7cb1d1fe94
2017-06-09 14:05:49 -03:00
bin Automatically enable all available languages 2017-06-09 14:05:49 -03:00
config Automatically enable all available languages 2017-06-09 14:05:49 -03:00
docs Automatically enable all available languages 2017-06-09 14:05:49 -03:00
i18n/locales Imported Translations from Zanata 2017-06-07 09:47:31 +00:00
releasenotes Automatically enable all available languages 2017-06-09 14:05:49 -03:00
src Automatically enable all available languages 2017-06-09 14:05:49 -03:00
tools Add release notes for Ocata 3.0.0 2017-02-13 11:29:30 -04:00
.babelrc Adds basic internationalization support 2016-12-13 12:44:00 +01:00
.editorconfig Adds .editorconfig file 2015-09-30 10:37:44 +02:00
.eslintrc Use prettier for linting 2017-05-12 11:47:54 -03:00
.gitignore Automatically enable all available languages 2017-06-09 14:05:49 -03:00
.gitreview Updated .gitreview 2016-03-22 09:36:08 -05:00
.npmignore Add packaging spec and config files 2016-08-19 19:43:09 +02:00
LICENSE Add LICENSE 2016-03-22 13:57:46 -03:00
README.md Add developer docs 2017-01-26 09:55:56 -04:00
jenkins-config.yml Replace "RDO" with "TripleO" and remove RDO logo 2016-03-04 14:29:25 +01:00
npm-shrinkwrap.json Bump to 7.1.0 (pike m2) 2017-06-08 08:48:19 +02:00
package.json Automatically enable all available languages 2017-06-09 14:05:49 -03:00
setup.cfg Fix sdist tarball name in setup.cfg 2017-02-16 10:50:59 +01:00
setup.py Add release notes for Ocata 3.0.0 2017-02-13 11:29:30 -04:00
test-requirements.txt Add release notes for Ocata 3.0.0 2017-02-13 11:29:30 -04:00
tox.ini Add release notes for Ocata 3.0.0 2017-02-13 11:29:30 -04:00
webpack.common.js Automatically enable all available languages 2017-06-09 14:05:49 -03:00
webpack.config.js Run minification and tree shaking on build 2017-05-24 09:36:45 -03:00
webpack.dev.js Run minification and tree shaking on build 2017-05-24 09:36:45 -03:00
webpack.prod.js Run minification and tree shaking on build 2017-05-24 09:36:45 -03:00

README.md

Team and repository tags

Team and repository tags

TripleO UI

Installation

See installation

Overview

See overview

Testing

See testing

Translation

See translation

Packaging

See packaging

Contributing

See contributing

License

Apache 2.0, see LICENSE for details.