这是indexloc提供的服务,不要输入任何密码
Skip to content

Curious about what the maintainer thinks about this gist #714

@martijnenco

Description

@martijnenco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions