NOTE: For installations, configurations and advanced usage.
refer [i18-js] (https://github.com/fnando/i18n-js)
//= require i18n | |
//= require i18n/translations | |
/**NOTE : for internationalization set default to english */ | |
I18n.defaultLocale = "en"; | |
I18n.locale = "en"; | |
//Example usage in javascript | |
I18n.t("swing_analysis_help_text.1.paragraphs") |
#NOTE Rails I18n translations on the Javascript. | |
gem 'i18n-js','2.1.2' |
NOTE: For installations, configurations and advanced usage.
refer [i18-js] (https://github.com/fnando/i18n-js)