The i18n-loader uses the i18next library to calculate the path to the correct resource file for the current language and then load it. The i18next uses the following template to calculate the path:

{{ns}}/translation_{{lng}}.json

{{ns}} represents a RequireJS namespace and {{lng}} represents a language. Using this template, i18next calculates paths that look similar to the following, which locates the English translation resource for the Account plugin module:

./bower_components/CSA.Plugins.Account/locales/translation_en.json


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices