[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7790":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},7790,"rails-i18n","svenfuchs\u002Frails-i18n","svenfuchs","Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff","http:\u002F\u002Frails-i18n.org",null,"Ruby",4031,2704,78,30,0,1,11,32,"MIT License",false,"master",true,[],"2026-06-12 02:01:44","Rails Locale Data Repository\n============================\n\n[![Gem Version](https:\u002F\u002Fbadge.fury.io\u002Frb\u002Frails-i18n.svg)](http:\u002F\u002Fbadge.fury.io\u002Frb\u002Frails-i18n)\n[![CI](https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Factions\u002Fworkflows\u002Fci.yml)\n\nCentralization of locale data collection for Ruby on Rails.\n\n## Gem Installation\n\nInclude the gem to your Gemfile:\n\n``` ruby\ngem 'rails-i18n', github: 'svenfuchs\u002Frails-i18n', branch: 'master' # For bleeding edge unreleased versions\ngem 'rails-i18n', '~> 8.1.0' # For Rails >= 8.1.0\ngem 'rails-i18n', '~> 8.0.0' # For Rails >= 8.0.0\ngem 'rails-i18n', '~> 7.0.0' # For Rails >= 7.0.0\ngem 'rails-i18n', '~> 6.0' # For 6.x\ngem 'rails-i18n', '~> 5.1' # For 5.0.x, 5.1.x and 5.2.x\ngem 'rails-i18n', '~> 4.0' # For 4.0.x\ngem 'rails-i18n', '~> 3.0' # For 3.x\ngem 'rails-i18n', github: 'svenfuchs\u002Frails-i18n', branch: 'rails-5-x' # For 5.x\ngem 'rails-i18n', github: 'svenfuchs\u002Frails-i18n', branch: 'rails-4-x' # For 4.x\ngem 'rails-i18n', github: 'svenfuchs\u002Frails-i18n', branch: 'rails-3-x' # For 3.x\n```\n\nAlternatively, execute the following command:\n\n``` shell\ngem install rails-i18n -v '~> 8.1.0' # For Rails >= 8.1.0\ngem install rails-i18n -v '~> 8.0.0' # For Rails >= 8.0.0\ngem install rails-i18n -v '~> 7.0.0' # For Rails >= 7.0.0\ngem install rails-i18n -v '~> 6.0' # For 6.x\ngem install rails-i18n -v '~> 5.1' # For  For 5.0.x, 5.1.x and 5.2.x\ngem install rails-i18n -v '~> 4.0' # For 4.0.x\ngem install rails-i18n -v '~> 3.0' # For 3.x\n```\n\nNote that your Ruby on Rails version must be 3.0 or higher in order to install the `rails-i18n` gem. For rails 2.x, install it manually as described in the Manual Installation section below.\n\n## Configuration\n\n### Enabled modules\n\nBy default, all `rails-i18n` modules (locales, pluralization, transliteration, ordinals) are enabled.\n\nIf you would like to only enable specific modules, you can do so in your Rails configuration:\n\n```ruby\n# to enable only pluralization rules, but disable all other features\nconfig.rails_i18n.enabled_modules = [:pluralization]\n\n# to enable pluralization and ordinals\nconfig.rails_i18n.enabled_modules = [:pluralization, :ordinals]\n```\n\nThe possible module names:\n\n* `:locale`\n* `:ordinals`\n* `:pluralization`\n* `:transliteration`\n\nSetting `enabled_modules` will restrict the gem's loaded features to only the specific types.\n\n### Available locales\n\n`rails-i18n` gem initially loads all available locale files, pluralization and transliteration rules. This default behaviour can be changed. If you specify in `config\u002Fenvironments\u002F*` the locales which have to be loaded via `I18n.available_locales` option:\n\n``` ruby\nconfig.i18n.available_locales = ['es-CO', :de]\n```\n\nor\n\n``` ruby\nconfig.i18n.available_locales = :nl\n```\n\n## Manual Installation\n\nDownload desired locale files found in [rails\u002Flocale](http:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Ftree\u002Fmaster\u002Frails\u002Flocale\u002F) directory and move them into the `config\u002Flocales` directory of your Rails application.\n\nIf any translation doesn't suit well to the requirements of your application, edit them or add your own locale files.\n\nFor more information, visit [Rails Internationalization (I18n) API](http:\u002F\u002Fguides.rubyonrails.org\u002Fi18n.html) on the _RailsGuides._\n\n## Usage on Rails 2.3\n\nLocale data whose structure is compatible with Rails 2.3 are available on the separate branch [rails-2-3](https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Ftree\u002Frails-2-3).\n\n## Available Locales\n\n**Available locales:**\n\naf, ar, az, be, bg, bn, bs, ca, cs, cy, csb, da, de, de-AT, de-CH, de-DE, dsb, dz, el, el-CY, en, en-AU, en-CA, en-CY, en-GB, en-IE, en-IN, en-NZ, en-TT, en-US, en-ZA, eo, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC, es-ES, es-MX, es-NI, es-PA, es-PE, es-US, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, fr-FR, fur, fy, gd, gl, gsw-CH, he, hi, hi-IN, hr, hsb, hu, id, is, it, it-CH, ja, ka, kk, km, kn, ko, lb, lo, lt, lv, mg, mk, ml, mn, mr-IN, ms, nb, ne, nl, nn, oc, or, pa, pap-AW, pap-CW, pl, pt, pt-BR, rm, ro, ru, sc, scr, sk, sl, sq, sr, st, sv, sv-FI, sv-SE, sw, ta, te, th, tl, tr, tt, ug, uk, ur, uz, vi, wo, zh-CN, zh-HK, zh-TW, zh-YUE\n\n**Complete locales:**\n\nen, en-US, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC, es-ES, es-MX, es-NI, es-PA, es-PE, es-US, es-VE, fr, fr-CA, fr-CH, fr-FR, gd, ja, pt, pt-BR, ru, sc\n\n**Locales with missing pluralization rules**\n\naf, csb, dsb, dz, fur, gsw-CH, lb, rm, scr, sq, sv-FI, te, tt, ug, uz\n\n**Removed pluralizations:**\n\nak, am, bh, bm, bo, br, by, cy, dz, ff, ga, gd, guw, gv, ig, ii, iu, jv, kab, kde, kea, ksh, kw, lag, ln, mo, mt, my, naq, nso, root, sah, se, ses, sg, sh, shi, sma, smi, smj, smn, sms, ti, to, tzm, wa, yo, zh\n\nThe above pluralization rules were removed because they did not have corresponding locale files.\n\n\nCurrently, most locales are incomplete. Typically they lack the following keys:\n\n- `activerecord.errors.messages.record_invalid`\n- `activerecord.errors.messages.restrict_dependent_destroy.has_one`\n- `activerecord.errors.messages.restrict_dependent_destroy.has_many`\n\nThe following keys should NOT be included:\n\n- `errors.messages.model_invalid`\n- `errors.messages.required`\n\nWe always welcome your contributions!\n\n## Currency Symbols\n\nSome locales have the symbol of the currency (e.g. `€`) under the key `number.currency.format.unit`,\nwhile others have the code (e.g. `CHF`). The value of the key depends on the widespread adoption of\nthe unicode currency symbols by fonts.\n\nFor example the Turkish Lira sign (`₺`) was recently added in Unicode 6.2 and while most popular\nfonts have a glyph, there are still many fonts that will not render the character correctly.\n\nIf you want to provide a different value, you can create a custom locale file under\n`config\u002Flocales\u002Ftr.yml` and override the respective key:\n\n``` yaml\ntr:\n  number:\n    currency:\n      format:\n        unit: TL\n```\n\n## How to Contribute\n\n### Quick Contribution\n\nIf you are familiar with GitHub operations, then follow the procedures described in the subsequent sections.\n\nIf not,\n\n* Save your locale data in a [Gist](http:\u002F\u002Fgist.github.com).\n* Open an issue with reference to the Gist you created.\n\n### Fetching the `rails-i18n` Repository\n\n* Get a github account and Git program if you haven't. See [Help.Github](http:\u002F\u002Fhelp.github.com\u002F) for instructions.\n* Fork `svenfuchs\u002Frails-i18n` repository and clone it into your PC.\n\n### Creating or Editing your Locale File\n\n* Have a look in `rails\u002Flocale\u002Fen.yml`, which should be used as the base of your translation.\n* Create or edit your locale file.\n  Please pay attention to save your files as UTF-8.\n\n### Testing your Locale File\n\nBefore committing and pushing your changes, test the integrity of your locale file.\n(You can also run the tests using Docker, see below)\n\n``` shell\nbundle exec rake spec\n```\n\nMake sure you have included all translations with:\n\n``` shell\nbundle exec rake i18n-spec:completeness rails\u002Flocale\u002Fen.yml rails\u002Flocale\u002FYOUR_NEW_LOCALE.yml\n```\n\nMake sure it is normalized with:\n\n``` shell\nthor locales:normalize LOCALE # or \"thor locales:normalize_all\"\n```\n\nYou can list all complete and incomplete locales:\n\n``` shell\nthor locales:complete\nthor locales:incomplete\n```\n\nAlso, you can list all available locales:\n\n``` shell\nthor locales:list\n```\n\nYou can list all missing keys:\n\n``` shell\ni18n-tasks missing es\n```\n\n### Edit README.md\n\nAdd your locale name to the list in `README.md` if it isn't there.\n\n### Send pull request\n\nIf you are ready, push the repository into the Github and send us a pull request.\n\nWe will do the formality check and publish it as quick as we can.\n\n### Add an informative title to your pull request or issue\n\nIf your pull request or issue concerns a specific locale - please indicate the relevant locale\nin the issue or pull request title in order to facilitate triage.\n\n**Best:**\n\n*Danish: change da.errors.messages.required to \"skal udfyldes\"*\n\n**Good:**\n\n*Human precision in Swedish locale file is set to 1*\n\n*Update es-PE.yml, the currency unit is incorrect*\n\n**Bad:**\n\n*Changing some string about validation*\n\n### Docker\n\nBuild the image:\n\n```\ndocker build --tag=railsi18n .\n```\n\nRun the tests:\n\n```\ndocker run railsi18n\n```\n\nTo run the other commands described above:\n\n```\ndocker run railsi18n bundle exec rake i18n-spec:completeness rails\u002Flocale\u002Fen.yml rails\u002Flocale\u002FYOUR_NEW_LOCALE.yml\n```\n\n## See also\n\n* [devise-i18n](https:\u002F\u002Fgithub.com\u002Fdevise-i18n\u002Fdevise-i18n)\n* [will-paginate-i18n](https:\u002F\u002Fgithub.com\u002Ftigrish\u002Fwill-paginate-i18n)\n* [kaminari-i18n](https:\u002F\u002Fgithub.com\u002Ftigrish\u002Fkaminari-i18n)\n* [i18n-country-translation](https:\u002F\u002Fgithub.com\u002Fonomojo\u002Fi18n-country-translations) for translations of country names\n* [i18n-timezones](https:\u002F\u002Fgithub.com\u002Fonomojo\u002Fi18n-timezones) for translations of Rails time zones\n* [i18n-spec](https:\u002F\u002Fgithub.com\u002Ftigrish\u002Fi18n-spec) for RSpec matchers to test your locale files\n* [iso](https:\u002F\u002Fgithub.com\u002Ftigrish\u002Fiso) for the list of valid language\u002Fregion codes and their translations\n* [i18n-tasks](https:\u002F\u002Fgithub.com\u002Fglebm\u002Fi18n-tasks)\n\n## License\n\n[MIT](https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Fblob\u002Fmaster\u002FMIT-LICENSE.txt)\n\n## Contributors\n\nSee [https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Fcontributors](https:\u002F\u002Fgithub.com\u002Fsvenfuchs\u002Frails-i18n\u002Fcontributors)\n\n## Special thanks\n\n[Tsutomu Kuroda](https:\u002F\u002Fgithub.com\u002Fkuroda) for untiringly taking care of this repository, issues and pull requests\n","rails-i18n 是一个为 Ruby on Rails 应用程序提供国际化支持的项目，主要功能是集中管理和提供多种语言环境的数据。该项目支持多种本地化模块，如复数规则、排序和转写等，并且可以根据需要启用或禁用特定模块，以优化应用性能。此外，它还允许开发者自定义加载的语言环境，从而实现更灵活的多语言支持。适用于任何希望在 Rails 项目中实现国际化功能的场景，特别是那些需要支持多种语言和地区差异的应用程序。",2,"2026-06-11 03:14:25","top_language"]