-
-
Notifications
You must be signed in to change notification settings - Fork 422
Open
Description
My installation work perfectly, but when I try to get all the translations with getCatalog I get only the current locale translations.
const i18n = new I18n({
locales: ["en-US", "it-IT"],
directory: path.join(__dirname, "i18n"),
header: "ignore-this",
defaultLocale: "en-US"
})
....
this.expressApp.use(i18n.init)
this.expressApp.use((req, res, next) => {
res.setLocale(i18n.getLocale())
next()
})
....
i18n.getCatalog() // return only the content of .json file for current locale
Metadata
Metadata
Assignees
Labels
No labels