Note: Internationalization/localization in Workarea relies heavily on Rails I18n and Mongoid Localization. The preceding links provide excellent explanations of those features, so they are recommended reading.
Rails I18n features are useful even if your app has only a single locale. Use I18n to customize static text strings, such as the content of success, failure, and warning messages.
To use multiple locales, start by configuring locales.
Determining the Current Locale
Workarea determines the current locale by looking for a locale prefix in the request URL.
Given an app with en (default), es, and de locales, the following table demonstrates how each URL maps to a locale.
How'd We Do?
If you found this article was missing information or wasn't quite what you were looking for, we are open to any suggestions or feedback on what we could do better.Help Us Out