_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: [
|
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() {
|
||||||
|
|
Loading…
Reference in a new issue