diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-19 15:32:48 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-19 15:32:48 +0200 |
commit | c1fe94a630a88c4f7203d54f34985c109030791c (patch) | |
tree | e6e75fe468dddddcbe440cbd356ddaaaf605144f /resources/js/helpers.js | |
parent | 218da95a4b387ee5ac25f168d1529419039f2e54 (diff) |
translations
Diffstat (limited to 'resources/js/helpers.js')
-rw-r--r-- | resources/js/helpers.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/js/helpers.js b/resources/js/helpers.js index 1622eb2..53a5c87 100644 --- a/resources/js/helpers.js +++ b/resources/js/helpers.js @@ -50,3 +50,10 @@ function mixColors(...colors) { function randomString () { return (Math.random() + 1).toString(36).substring(2); } + +/** + * @param {string} msgid + */ +function translate (msgid) { + return DB.translations[Memory.state.language][msgid]; +} |