diff options
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]; +} |