mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 17:48:49 +01:00
Added new function to add cumstom translation strings on Admin panel
This commit is contained in:
parent
4153fe7d0d
commit
b1525d4221
10 changed files with 599 additions and 2 deletions
|
|
@ -1261,6 +1261,17 @@ ReactiveCache = {
|
|||
}
|
||||
return ret;
|
||||
},
|
||||
getTranslations(selector, options, getQuery) {
|
||||
let ret = Translation.find(selector, options);
|
||||
if (getQuery !== true) {
|
||||
ret = ret.fetch();
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
getTranslation(idOrFirstObjectSelector, options) {
|
||||
const ret = Translation.findOne(idOrFirstObjectSelector, options);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
// Client side little MiniMongo DB "Index"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue