JavaScript Object (.js)
Arthur Ziborov avatar
Written by Arthur Ziborov
Updated over a week ago

JavaScript Object file should contain a variable with an object representing your translations:

var translations = {
    "plural_key": {
        "one": "One user online.",
        "other": "%i users online."
    },
    "simple_key": "Hi, I am a key!"
};
Did this answer your question?