How to use the gettext-parser.mo.parse function in gettext-parser

To help you get started, we’ve selected a few gettext-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Rafostar / gnome-shell-extension-cast-to-tv / node_scripts / gettext.js View on Github external
fs.readFile(translationsFilePath, (err, data) =>
			{
				if(err) return console.log(`Cast to TV: error reading node ${locale} translation`);

				var parsedTranslations = moParser.parse(data);
				gt.addTranslations(locale, domain, parsedTranslations);
			});
		});

gettext-parser

Parse and compile gettext po and mo files to/from json, nothing more, nothing less

MIT
Latest version published 3 months ago

Package Health Score

79 / 100
Full package analysis