i18next-po-loader
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -6,4 +6,6 @@ var converter = require('i18next-conv-inline') | ||
var callback = this.async() | ||
let language = source.match(/Language: ([\w]*)/) | ||
language = language ? language[1] : 'en' | ||
converter.gettextToI18next('en', source, {quiet: true}, function (err, data) { | ||
converter.gettextToI18next(language, source, {quiet: true}, function (err, data) { | ||
if (err) { | ||
@@ -10,0 +12,0 @@ return callback(err) |
{ | ||
"name": "i18next-po-loader", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Load gettext PO files as i18next format directly in webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24640
13