angular-gettext を使用して国際化された角度付きアプリを構築しています。翻訳ファイルを更新する際のワークフローをより自動化する方法を知りたいです。
- "grunt" の実行 (pot ファイル + 翻訳ファイルの生成) - poedit ですべての "po" ファイルを開く - poedit で、新しい "pot" ファイルで po ファイルを更新する - poedit で翻訳を更新して保存する- うなり声をもう一度実行します
より良いものを手に入れる方法はありますか?同様に、grunt コマンドを使用して、pot ファイルをすべての「po」ファイルに適用することは可能ですか?
これが現在の私のグラントファイルです。どうもありがとう
module.exports = function(grunt)
{
grunt.initConfig({
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['www/app/**/*.html']
}
},
},
nggettext_compile: {
all: {
options: {
module: 'app'
},
files: {
'www/resources/translations.js': ['po/*.po']
}
},
}
});
grunt.loadNpmTasks('grunt-angular-gettext');
// Default task(s).
grunt.registerTask('default', ['nggettext_extract', 'nggettext_compile']);
}