Last active
August 29, 2015 14:23
-
-
Save jcieslar/55f642b1f717cbf1eabe to your computer and use it in GitHub Desktop.
Angular i18n locale currency pain and how to setup with rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= javascript_include_tag I18n.locale.to_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%span.value {{ amount || 0 | currency:'$' }} | |
# I18n.locale => en | |
# => $100 | |
# I18n.locale => pl | |
# => 100 $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require angular-i18n/angular-locale_en-us.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rails-assets-angular-i18n', '~> 1.4.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require angular-i18n/angular-locale_pl-pl.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment