Add _context key to themes for translations, all strings can now be translated

This commit is contained in:
Pieter Vander Vennet 2022-04-06 17:28:51 +02:00
parent db2b14cd95
commit a9aff5e16e
7 changed files with 105 additions and 21 deletions

View file

@ -107,7 +107,7 @@ export default class Translations {
return false
}
// is a weird key found?
if(Object.keys(transl).some(key => !this.knownLanguages.has(key))){
if(Object.keys(transl).some(key => key !== '_context' && !this.knownLanguages.has(key))){
return false
}