grunt-static-i18n
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "grunt-static-i18n", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Grunt plugin to translate static assets.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/beck/grunt-static-i18n", |
@@ -103,2 +103,8 @@ # Static Internationalization | ||
#### options.textDomain | ||
Type: `String` | ||
Default value: `messages` | ||
Name of your po files: `locale/<lang>/LC_MESSAGES/<textDomain>.po` | ||
## Tests | ||
@@ -110,2 +116,3 @@ | ||
* 0.3.1 - add text domain to options | ||
* 0.3.0 - fix issue with locale discovery | ||
@@ -112,0 +119,0 @@ * 0.2.0 - quote translated text when rendering javascript |
@@ -40,3 +40,4 @@ /* | ||
var po = path.join( | ||
statici18n.options.localeDir, lang, 'LC_MESSAGES', 'messages.po' | ||
statici18n.options.localeDir, lang, 'LC_MESSAGES', | ||
statici18n.options.textDomain + '.po' | ||
); | ||
@@ -132,3 +133,4 @@ if (!grunt.file.exists(po)){ | ||
imports: { '_': gettext } | ||
} | ||
}, | ||
textDomain: 'messages' | ||
}); | ||
@@ -135,0 +137,0 @@ |
19292
401
124