Skip to content

Assign translated values #37

@victorgianvechio

Description

@victorgianvechio

How can I use the translated values? I am developing a multi language system and would like to change the values ​​of the variables according to the language obtained by node process.env.LANG.

Example of my .po file:

msgid ""
msgstr ""
"Project-Id-Version: date-pt-bt 1.2.2\n"
"Report-Msgid-Bugs-To: victor@gianvecchio.com \n"
"Last-Translator: Victor Gianvechio <victor@gianvecchio.com>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

msgid "day"
msgid_plural "days"
msgstr[0] "dia"
msgstr[1] "dias"

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