...

Text file src/github.com/go-playground/universal-translator/_examples/file-formats/plain-substitution.json

Documentation: github.com/go-playground/universal-translator/_examples/file-formats

     1[
     2    {
     3        "locale": "en",
     4        "key": "test_trans4",
     5        "trans": "{0}{1}"
     6    },
     7    {
     8        "locale": "en",
     9        "key": "test_trans",
    10        "trans": "Welcome {0} to the {1}."
    11    },
    12    {
    13        "locale": "en",
    14        "key": -1,
    15        "trans": "Welcome {0}"
    16    },
    17    {
    18        "locale": "en",
    19        "key": "test_trans2",
    20        "trans": "{0} to the {1}."
    21    },
    22    {
    23        "locale": "en",
    24        "key": "test_trans3",
    25        "trans": "Welcome {0} to the {1}"
    26    }
    27]

View as plain text