From 6d7ab9a711f2c8ebace045caf0a63c49a74eaba7 Mon Sep 17 00:00:00 2001 From: Simon Rozsival Date: Wed, 23 Nov 2016 21:15:48 +0100 Subject: [PATCH] Updated Web application (markdown) --- Web-application.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Web-application.md b/Web-application.md index 1e108f3..3339370 100644 --- a/Web-application.md +++ b/Web-application.md @@ -98,9 +98,15 @@ The free [FontAwesome](http://fontawesome.io/) icon pack is used in the applicat @todo -### Localization +### Localization and globalization -@todo +The whole application is prepared for localization. All the text can be exported from the user interface and translated into several languages. The numbers, dates, and time values are also formatted with respect to the selected language. The [react-intl](https://github.com/yahoo/react-intl) and [Moment.js](http://momentjs.com/) libraries are used to achieve this. + +All the strings can be extracted from the application using a command: +``` +$ npm run exportStrings +``` +This will create *JSON* files with the exported strings for the *'en'* and *'cs'* locale. If you want to export strings for more languages, you must edit the `/manageTranslations.js` script. The exported strings are placed in the `/src/locales` directory. ## Installation