1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 05:02:45 +01:00

fixed server l10n parse error

This commit is contained in:
Danny Coates 2019-03-06 16:36:17 -08:00
parent 796b98680c
commit f9fd9940bd
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -7,7 +7,7 @@ const locales = fs.readdirSync(localesPath);
function makeBundle(locale) {
const bundle = new FluentBundle(locale, { useIsolating: false });
bundle.addMessages(
fs.readFileSync(path.resolve(localesPath, locale, 'send.ftl'))
fs.readFileSync(path.resolve(localesPath, locale, 'send.ftl'), 'utf8')
);
return [locale, bundle];
}