Branch: refs/heads/master
Home: https://github.com/zanata/zanata-platform
Commit: 1a74f3a033e3d299a42c9b09ab3a79f38d41a0cd
https://github.com/zanata/zanata-platform/commit/1a74f3a033e3d299a42c9b09ab3a79f38d41a0cd
Author: Earl Floden <[email protected]>
Date: 2018-02-21 (Wed, 21 Feb 2018)
Changed paths:
M server/zanata-frontend/pom.xml
M server/zanata-frontend/src/app/config.js
M server/zanata-frontend/src/app/editor/actions/header-action-types.js
M server/zanata-frontend/src/app/editor/actions/header-actions.js
M server/zanata-frontend/src/app/editor/api/index.js
M
server/zanata-frontend/src/app/editor/components/TranslatingIndicator/TranslatingIndicator.test.js
M
server/zanata-frontend/src/app/editor/components/TranslatingIndicator/index.js
M server/zanata-frontend/src/app/editor/containers/Root/index.js
M server/zanata-frontend/src/app/editor/entrypoint/index.js
M server/zanata-frontend/src/app/editor/index.html
M server/zanata-frontend/src/app/editor/reducers/context-reducer.js
M server/zanata-frontend/src/app/editor/reducers/context-reducer.test.js
M server/zanata-frontend/src/app/editor/reducers/header-data-reducer.js
M server/zanata-frontend/src/app/editor/reducers/header-data-reducer.test.js
M server/zanata-frontend/src/app/editor/reducers/index.js
M server/zanata-frontend/src/app/editor/reducers/ui-reducer.js
M server/zanata-frontend/src/index.html
M server/zanata-frontend/src/messages/en-us.json
A server/zanata-frontend/src/messages/en.json
A server/zanata-frontend/src/messages/ja.json
M server/zanata-war/src/main/webapp/WEB-INF/template/template.xhtml
M server/zanata-war/src/main/webapp/a/index.xhtml
M server/zanata-war/src/main/webapp/editor/index.xhtml
Log Message:
-----------
feat(ZNTA-2113) Zanata Frontend Internationalization (#720)
* feat(ZNTA-2113): Make react-intl json translation consumable
* refactor(ZNTA-2113): Move intl provider inside store
* feat(ZNTA-2133): implement fetching react-intl translations action and reducer
* fix(ZNTA-2113): use en-us default language
* feat(ZNTA-2113): store locale in window config
* feat(ZNTA-2113): source config locale in editor
get messages from appUrl endpoint
save messages to state in reducer
update reducer test to also test messages
* feat(ZNTA-2113): Dynamicly load language messages, change UI locales if
translations exist.
Changing the language in the jsf more options page will change the I18n
messages to be used in the editor
Can be observed for the Japanese language, with the Translating indicator
changing
* test(ZNTA-2113): update test to use IntlProvider on components with
FormattedMessages
nb: all components using FormattedMessages will need to update tests likewise
* feat(ZNTA-2113): dynamically load the locale data of the selected appLocale
* refactor(ZNTA-2113): move DEFAULT_LOCALE to config
_______________________________________________
zanata-commits mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/zanata-commits