mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
20 lines
393 B
JavaScript
20 lines
393 B
JavaScript
import i18next from "i18next";
|
|
|
|
i18next.init({
|
|
lng: "lang",
|
|
resources: {
|
|
lang: {
|
|
translation: page_params.translation_data,
|
|
},
|
|
},
|
|
nsSeparator: false,
|
|
keySeparator: false,
|
|
interpolation: {
|
|
prefix: "__",
|
|
suffix: "__",
|
|
},
|
|
returnEmptyString: false, // Empty string is not a valid translation.
|
|
});
|
|
|
|
window.i18n = i18next;
|