diff --git a/app/package.json b/app/package.json index d43107323..78acfbe7a 100644 --- a/app/package.json +++ b/app/package.json @@ -14,8 +14,10 @@ "license": "ISC", "devDependencies": { "autoprefixer-loader": "^3.1.0", + "babel-cli": "^6.5.1", "babel-core": "^6.3.17", "babel-eslint": "^4.1.6", + "babel-gettext-extractor": "git://github.com/Cadasta/babel-gettext-extractor.git", "babel-loader": "^6.2.0", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", @@ -53,6 +55,18 @@ "presets": [ "es2015", "react" + ], + "plugins": [ + [ + "babel-gettext-extractor", { + "functionNames": { + "t": ["msgid"], + "tn": ["msgid", "msgid_plural", "count"], + "tct": ["msgid"] + }, + "baseDirectory": "." + } + ] ] }, "dependencies": {