Skip to content

Example Application of Component Approach to Internationalization

License

Notifications You must be signed in to change notification settings

oklas/component-intl-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration Application

This is demonstration application with minimal amount of dependencies to demonstrate how to build and configure application and libraries with support of internationalization according to component approach

The application consists of several components with its own locales, including one exported from an external library. Sources of application included of three set of locale data:

Running application after building stage have only one merged set of locale data files.

The additional helper Component Text is used to encapsulating root of tree and also it is used for additional markdown text preprocessing.

The locales component namespace contain code which prepare data required by IntlProvider and prepare locales to loading itself. It is a place where locale data built by intl-webpack-plugin is loaded. (See ./webpack.config.js). Also the loadLocale funcion and the locale Selector component are exported from here.

This example application is

Source code of used external component Welcome with its own exported locales is here:

About

Example Application of Component Approach to Internationalization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published