_t should be used on string literals

For scripts to easily find translations
This commit is contained in:
Luke Barnard 2017-07-04 15:06:24 +01:00
parent e3f2eb5232
commit e6ec5742be

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() {