Internationalization
Usage
Clone this repository:
Then, install and run it:
Open http://localhost:3000 in your browser.
How It Works
This example uses express middleware to enable internationalization.
To use it, create a configuration file at config/default.json
with the following:
To access locale, default locale, and site locales within your application, you need to provide them into every page using createPage()
as follows:
Now, you can access them in your component as well using withLocale
:
Last updated