working on permissions and messages
This commit is contained in:
@@ -8,6 +8,7 @@ export async function loadTranslation(lang){
|
||||
}
|
||||
|
||||
export function t(key,...args){
|
||||
if (key instanceof Response) key = 'status.'+key.status;
|
||||
let set = translations.values;
|
||||
let keys = key.split('.');
|
||||
for (let token of keys){
|
||||
|
||||
Reference in New Issue
Block a user