Added new function to add cumstom translation strings on Admin panel

This commit is contained in:
Yevhenii Pertiaka 2023-08-17 21:54:14 +09:00
parent 4153fe7d0d
commit b1525d4221
10 changed files with 599 additions and 2 deletions

View file

@ -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"