_t should be used on string literals

For scripts to easily find translations
pull/21833/head
Luke Barnard 2017-07-04 15:06:24 +01:00
parent e3f2eb5232
commit e6ec5742be
1 changed files with 1 additions and 4 deletions

View File

@ -27,7 +27,6 @@ export default {
LABS_FEATURES: [ LABS_FEATURES: [
{ {
name: "-", name: "-",
_tName: "Matrix Apps", // Translated!
id: 'matrix_apps', id: 'matrix_apps',
default: false, default: false,
}, },
@ -35,9 +34,7 @@ export default {
// horrible but it works. The locality makes this somewhat more palatable. // horrible but it works. The locality makes this somewhat more palatable.
doTranslations: function() { doTranslations: function() {
this.LABS_FEATURES.forEach((f) => { this.LABS_FEATURES[0].name = _t("Matrix Apps");
f.name = _t(f._tName);
});
}, },
loadProfileInfo: function() { loadProfileInfo: function() {