Feat: locale generating adoption
比较变更
文件
5
jh/lib/gitlab/patch/po_to_json.rb 已删除
100644 → 0
+ 0
− 47
Resolve #2906 (closed)
Per upstream MR changed locale generation from Ruby to JS, thus the previous script we implemented will not be able to generate any locale file.
The current MR does two things to solve this problem
jh/scripts/frontend/po_to_json.js
jh/lib/tasks/gettext.rake
to override Upstream's command gettext:compile
app.js
file
$ rm app/assets/javascripts/locale/en/app.js
rake gettext:compile
, expecting to regenerate app.js
$ rake gettext:compile
$ ls app/assets/javascripts/locale/en/app.js