mini_i18n
mini_i18n copied to clipboard
🌐 Minimalistic I18n library for Ruby
See: https://github.com/markets/mini_i18n/blob/master/spec/fixtures/locales/localization.yml As `rails-i18n` does, maybe we can provide those defaults for some languages? 👉🏼 https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale
Introduce a global method `T` (or `t`) as a shortcut for convenience: ```ruby >> T(:hello) => "Hello" ``` Let's say `T` (or `t`) should be the same as `MiniI18n.t`. Probably,...
Instead of current method: ```rb # Path to your translation files. config.load_translations(__dir__ + '/translations/*') ``` We should introduce a new attribute: ```rb # Path to your translation files. config.translations_paths =...
- [x] Implement CLI tool with core translation management commands - [x] Add CLI tests and clean up ignored test files - [x] Address review feedback on require structure -...
Print keys that are missing. Allow a --locale argument to filter out missing keys by locale.
Report some stats like: - number of locales - number of total keys - % of completion for each lang