Collections
Categories
Partners
Other
The most commonly used library for internationalizing Ruby on Rails applications is rails-i18n. A comprehensive guide on how to use it in your Rails applications can be found at the Rails I18n API.
Ruby on Rails YAML is a natively supported file format in Crowdin, so you don't need to install anything extra to use it. Simply upload your files to your project and start localizing.
Attribute | Value |
---|---|
File Extension | .yaml, .yml |
API Type | yaml |
Source can be edited in Crowdin | Yes |
Generating translated files via Bundles | Search Crowdin Store |
Supports pluralization | Yes |
WYSIWYG Preview in the editor | No |
Supported types of contextual information | Text comments, Screenshots, In-Context |
Custom attributes | No |
Existing translations import possibility | Key-value mapping |
en:
welcome:
title: "Welcome!"
content: "Welcome to the %{app_name}"
example_array: ['checking', 'arrays']
long_line: |
Long
text
The root node of the YML file should always be a target language code in the ISO 639-1 format. RoR allows multiple locales to be stored in one file, but this is not currently supported by Crowdin. The recommended practice is to have one file per target locale.
The syntax for placeholders is as follows: %{var}
.
Comments
en:
first_key: "String for translation 1" #Context for string 1
Plurals
en:
not_found: "not found"
not_saved:
one: "one apple"
other: "other apples"
Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.
Learn MoreReleased on Dec 15, 2022
Updated on Feb 23, 2024
Published by Crowdin
Identifier:ruby-on-rails