How to use the i18next-conv.parseJSON function in i18next-conv

To help you get started, we’ve selected a few i18next-conv 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 i18next / i18next-node / backends / gettext / sync.js View on Github external
converter.addTextDomain(lng, source, {}, function(err, data) {
            // console.log(data);
            if (err) {
                callback(err);
                return;
            }

            converter.parseJSON(lng, data, {}, function(err, json) {
                if (err) {
                    callback(err);
                } else {
                    self.functions.log('loaded file: ' + source);
                    callback(null, json);
                }
            });
        });
    },

i18next-conv

converts .mo and .po files to i18next's json format and vice versa.

MIT
Latest version published 22 hours ago

Package Health Score

75 / 100
Full package analysis