_t should be used on string literals
For scripts to easily find translations
This commit is contained in:
parent
e3f2eb5232
commit
e6ec5742be
1 changed files with 1 additions and 4 deletions
|
@ -27,7 +27,6 @@ export default {
|
|||
LABS_FEATURES: [
|
||||
{
|
||||
name: "-",
|
||||
_tName: "Matrix Apps", // Translated!
|
||||
id: 'matrix_apps',
|
||||
default: false,
|
||||
},
|
||||
|
@ -35,9 +34,7 @@ export default {
|
|||
|
||||
// horrible but it works. The locality makes this somewhat more palatable.
|
||||
doTranslations: function() {
|
||||
this.LABS_FEATURES.forEach((f) => {
|
||||
f.name = _t(f._tName);
|
||||
});
|
||||
this.LABS_FEATURES[0].name = _t("Matrix Apps");
|
||||
},
|
||||
|
||||
loadProfileInfo: function() {
|
||||
|
|
Loading…
Reference in a new issue