From e6ec5742bee6416ab35c2b7469de0840303733f9 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 4 Jul 2017 15:06:24 +0100 Subject: [PATCH] _t should be used on string literals For scripts to easily find translations --- src/UserSettingsStore.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/UserSettingsStore.js b/src/UserSettingsStore.js index bbc436a1f6..fef84468ec 100644 --- a/src/UserSettingsStore.js +++ b/src/UserSettingsStore.js @@ -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() {