👷‍♂️Add custom Trans component (#681)

This commit is contained in:
Luke Vella 2023-04-26 15:18:35 +01:00 committed by GitHub
parent 91bb5b8a73
commit ffbf920dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 28 deletions

View file

@ -6,12 +6,7 @@ module.exports = {
keySeparator: ".",
nsSeparator: false,
defaultNs: "app",
defaultValue: function (lng) {
if (lng === "en") {
return "__STRING_NOT_TRANSLATED__";
}
return "";
},
defaultValue: "__STRING_NOT_TRANSLATED__",
lngs: ["en"],
ns: ["app"],
plural: false,