mirror of https://gitgud.io/fatchan/jschan.git
Try getting languages into the frontend (still want a better way to only include single language packs and only a subset of keys)
parent
a360f09929
commit
5bf792649b
10 changed files with 22 additions and 8 deletions
@ -0,0 +1,7 @@ |
||||
/* eslint-disable no-unused-vars */ |
||||
/* globals LANG */ |
||||
const CURRENTLANG = document.head.dataset.lang; |
||||
const __ = (key) => { |
||||
//TODO: we'll see if this needs to be more advanced in future
|
||||
return LANG[CURRENTLANG][key]; |
||||
}; |
Loading…
Reference in new issue