mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-04 21:35:19 +00:00
Configure i18next with all locales
I noticed that we aren't i18next checking all locales. Should we be? I think it might help keep things consistent. It also appears to be highlighting some non-visible characters in some entries
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { readdirSync } from "fs";
|
||||
|
||||
export default {
|
||||
keySeparator: ".",
|
||||
namespaceSeparator: false,
|
||||
@@ -21,7 +23,9 @@ export default {
|
||||
},
|
||||
],
|
||||
},
|
||||
locales: ["en"],
|
||||
locales: readdirSync("locales", { withFileTypes: true })
|
||||
.filter(({ isDirectory }) => isDirectory)
|
||||
.map(({ name }) => name),
|
||||
output: "locales/$LOCALE/$NAMESPACE.json",
|
||||
input: ["src/**/*.{ts,tsx}"],
|
||||
sort: true,
|
||||
|
||||
Reference in New Issue
Block a user