Skip to content

Support translation of "map of Strings" #1

Description

@emersonsiega

My app needs to translate a list of strings (a list of countries), and I can't find a way to do that using the yaml file.

My suggestion is to add this capability to i18n. Just a way to create a setting like:

countries: 
   - BR: Brasil
   - SG: Senegal
   - VE: Venezuela

so this list can be converted to a Map of Strings.

This way I can get the correct translation based on the country key
country['BR']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions