Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In index.html create functions for translate #13

Open
dallaszkorben opened this issue Mar 31, 2024 · 0 comments
Open

In index.html create functions for translate #13

dallaszkorben opened this issue Mar 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dallaszkorben
Copy link
Owner

In index (228)
create functions for translate the be able to get back default values. Now if the key is not found then empty string will be returned.
I already created it for level:

    function get_translated_level(level){
        if (translated_levels.hasOwnProperty(level)) {
            return translated_levels[level];
        } else {
            return level;
        }
    }
@dallaszkorben dallaszkorben added the enhancement New feature or request label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant