You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear maintainers, your libraries looks extensive, but I can't get it to work for languages which have more than one plural form. Here's my gulp task, just stolen from the example:
gulp.task('i18next', function() {
return gulp.src(['frontend/js-webpack/react/**/*.{js,html}'])
.pipe(scanner({
lngs: ['en', 'de', 'ua', 'uk', 'ru'], // supported languages
resource: {
// the source path is relative to current working directory
loadPath: 'assets/i18n/{{lng}}/{{ns}}.json',
// the destination path is relative to your `gulp.dest()` path
savePath: 'i18n/{{lng}}/{{ns}}.json'
}
}))
.pipe(gulp.dest('assets'));
});
That results in the same file for all the locales, e.g. ru/translation.json:
{
"Connected to": "",
"Connected to_plural": ""
}
There should be keys like "Connected to_1", "Connected to_2", "Connected to_5", as described in the i18next docs. Am I missing something?
Thanks for you kind attention!
The text was updated successfully, but these errors were encountered:
Dear maintainers, your libraries looks extensive, but I can't get it to work for languages which have more than one plural form. Here's my gulp task, just stolen from the example:
That results in the same file for all the locales, e.g. ru/translation.json:
There should be keys like "Connected to_1", "Connected to_2", "Connected to_5", as described in the i18next docs. Am I missing something?
Thanks for you kind attention!
The text was updated successfully, but these errors were encountered: