Skip to content

Multiple dynamic translation paths #495

@eotin

Description

@eotin

Hi,

I've a app that support multi language (fr & en) and is available for different "countries". This country parameters depends on a route (so we have 2 parameters that operate on the translation , locale + country
What I would like to do is to be able to override some translation keys per country for the same language.

Example :
Http call to http://MyApp/en/germany/myForm will give me a different than http://MyApp/en/france/myForm because the translator nows that for 'france' it should get the translation from another path than for 'germany'. So it will override the default folder that includes all default translations ..

I was wondering how to create multiple translator instances that have it's proper paths of translations files, and have a factory that return the right translatorService regarding the country parameter.

What is the best way to achieve that ?

Thanks for helping

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