Curious about what the maintainer thinks about this gist

Open
#714 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby

Research direction

Start by reviewing the linked “I18n Variations” gist and its initializer, then compare the proposal with the gem’s existing locale and translation behavior. A contribution would need an agreed design from maintainers before implementation, along with a defined test location and acceptance criteria for nested formal and informal translations.

Written by the indexing model from the issue text.

Description

Hello!

For an application I needed to add variations in my translation files, the way I see most people do it is creating just more locale files like en_formal.yml & en_informal.yml. I kinda find that very very ugly and not at all DRY. So that why I made this initializer that partly overrides this gem.

Here is the gist, with my code and explanation: I18n Variations

TL:DR;
It's making this work:

en:
  some_translation_that_does_not_have_variations: "Hello world, I say my greetings to everyone the same way!"
  some_translation_that_has_variations:
    formal: "I am being very polite here"
    informal: "I am not, deal with it."

If people maintainers think this is awesome or might be a good fight I would like to implement it to the gem.

Dominant language
Ruby
Stars
1k
Forks
415
Avg merge
2d 3h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby-i18n/i18n

All issues in ruby-i18n/i18n

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.