mirror of https://github.com/zulip/zulip.git
translations: Clean up indentation for initialization code.
This commit is contained in:
parent
d9347dea3e
commit
3f0a1e7c54
|
@ -3,22 +3,21 @@ import i18next from 'i18next';
|
|||
|
||||
window.i18n = i18next;
|
||||
|
||||
i18next
|
||||
.init({
|
||||
lng: 'lang',
|
||||
resources: {
|
||||
lang: {
|
||||
translation: page_params.translation_data,
|
||||
},
|
||||
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.
|
||||
});
|
||||
},
|
||||
nsSeparator: false,
|
||||
keySeparator: false,
|
||||
interpolation: {
|
||||
prefix: "__",
|
||||
suffix: "__",
|
||||
},
|
||||
returnEmptyString: false, // Empty string is not a valid translation.
|
||||
});
|
||||
|
||||
// garbage collect all old-style i18n translation maps in localStorage.
|
||||
$(function () {
|
||||
|
|
Loading…
Reference in New Issue