This is the complete collection locales for TRMNL internationalization.
-
Fork this repository.
-
Follow the guide.
To install with security, run:
# 💡 Skip this line if you already have the public certificate installed.
gem cert --add <(curl --compressed --location https://usetrmnl.com/gems.pem)
gem install trmnl-i18n --trust-policy HighSecurityTo install without security, run:
gem install trmnl-i18nYou can also add the gem directly to your project:
bundle add trmnl-i18nOnce the gem is installed, you only need to require it:
require "trmnl/i18n"If you are using this gem in a non-Rails application, you will need to manually load the locales during the application’s initialization.
TRMNL::I18n.load_localesThis gem is a Ruby on Rails Railtie that follows I18n conventions allowing you to customize country locales. You only need to include this gem, as documented in the Setup section, to automatically load and use these locales. That’s it!
To contribute, run:
git clone https://github.com/usetrmnl/trmnl-i18n
cd trmnl-i18n
bin/setupYou can also use the IRB console for direct access to all objects:
bin/consoleTo add new locale keys, first add them to the en.yml files in each folder. Then run bin/sync to update all other languages. The default source locale is always en but you can supply a specific locale if you like. For example, if wanting to use French as the default source locale, run: bin/sync fr.
To test within a Rails app for local development purposes, you can do the following:
-
Create a feature branch and add your new locales.
-
Push the feature branch up (no need to open a code review until you are ready).
-
Update your Rails application’s
Gemfileto point to your feature branch. Example:gem "trmnl-i18n", github: "your_fork/trmnl-i18n", branch: "your_feature_branch".
-
German via @ramdacxp, @philippbosch, @yannicschuller, @MaxDev98, @IngmarStein, @DavidOrtmann, @Wandmalfarbe
-
Spanish (Spain) via @joesfer, @jeff-foster, @fixmycode
-
French via @theogiraudet, @MarvinNTA
-
Indonesian via @Adekabang
-
Icelandic via @arnib13
-
Italian via @danieleb-podero, @Stefifox
-
Japanese via Hiroyuki Miyoshi, @liahsheep
-
Korean via @i-say-young
-
Portuguese via @danielsitnik
-
Danish via @clysel
-
Dutch via @huge10, @SjanPjer, @gjdenhertog, @hufman, @lukasvermeer
-
Ukrainian via @veikus, @yankobogdan
-
Chinese (Simplified) via @JoshBashed, @MarkSong535
-
Chinese (Hong Kong) via @liahsheep
-
Hebrew via @itay99988
-
Built with Gemsmith.
-
Engineered by TRMNL.