working on permissions and messages

This commit is contained in:
2025-07-02 23:41:04 +02:00
parent 5100ac244a
commit caf2356f48
4 changed files with 17 additions and 11 deletions

View File

@@ -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){