Skip to content

Conversation

@sho-he
Copy link

@sho-he sho-he commented Dec 23, 2025

Hi.
This pull request updates the documentation for the I18n library to clarify that translation files can also be in JSON format.
Since, in Base, the parent class of SimpleBackend, the following is defined:

loaded_translations = load_file(filename)

def load_json(filename)

handles JSON files as locale files, I would like to explicitly mention JSON support in the configuration and documentation as well.

I apologize for bringing up such a minor detail, but I appreciate your attention to it.

  • Documentation update:
    • The comment in lib/i18n/config.rb now specifies that translation files can be named .json and contain JSON data, expanding the list of supported formats for translation files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant