Giter VIP home page Giter VIP logo

Comments (4)

TGRHavoc avatar TGRHavoc commented on August 23, 2024

There currently is no way of doing this unless you go through the files yourself and translate the stuff you need into the language of your choice.

It would be nice to have language support in the interface. I could work on something but, it would take a while to get it done and ready for general use

from live_map-interface.

Novalite3D avatar Novalite3D commented on August 23, 2024

Where can i change it? Which file?

from live_map-interface.

TGRHavoc avatar TGRHavoc commented on August 23, 2024

mainly the index.html file but, there's text everywhere through the JS files as well

from live_map-interface.

TGRHavoc avatar TGRHavoc commented on August 23, 2024

Implemented in the following commits:
d2050ae
6ff88be
e9b27e1
b6fa62e
9caff2c

If you want your language to be added, then you will need to translate the following JSON file:

{
    "title" : "Havoc's LiveMap",
    "credit": "This was originally created by ",
    "navbar":{
        "select-server" : "Select a server",
        "controls" : "Show Controls",
        "blips": "Blip controls",
        "language": "Language"
    },
    "generic": {
        "on" : "On",
        "off" : "Off",
        "connected" : "Connected",
        "disconnected": "Disconnected",
        "close": "Close"
    },
    "controls" : {
        "title" : "Controls",
        "blips" : {
            "title" : "Blips",
            "refresh": "Refresh Blips",
            "show" : "Show Blips"
        },
        "connection": {
            "title": "Connections",
            "live-update": "Live Update",
            "reconnect" : "Reconnect"
        },
        "information": {
            "title": "Information",
            "viewing": "Currently viewing",
            "blips-loaded": "Blips loaded",
            "players": "Player Count"
        },
        "track-player": "Track a player",
        "filter": {
            "title": "Filter",
            "filter-value": "With a value of",
            "filter-placeholder": "Some value"
        }
    },
    "blip-controls": {
        "title": "Blip Controls",
        "toggle": "Toggle all"
    }
}

If you wan to add it your self, just add a new JSON file under the "translations" directory with the name {{language_code}}.json (Where language code can be found at https://www.science.co.il/language/Locale-codes.php).

Then, just add it to the manifest.json file for users to be able to use it. With the language code as the key and the name of the language (in it's own language) as the value.

{
    "en": "English", 
   "es": "Español"
}

from live_map-interface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.