Skip to content
代码片段 群组 项目

Feat: locale generating adoption

已合并 Wu Jeremy requested to merge feat/locale-generating-adoption into main-jh

Description

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

  1. Add our Jihu own script to generate locale files: jh/scripts/frontend/po_to_json.js
  2. Add jh/lib/tasks/gettext.rake to override Upstream's command gettext:compile

How to use

  1. Manually delete the app.js file
    $ rm app/assets/javascripts/locale/en/app.js
  2. Execute the command rake gettext:compile, expecting to regenerate app.js
    $ rake gettext:compile
    $ ls app/assets/javascripts/locale/en/app.js
路志远 编辑于

合并请求报告

Loading
Loading

动态

过滤活动
  • 批准
  • 指派人和审核者
  • 评论(来自机器人)
  • 评论(来自用户)
  • 提交和分支
  • 编辑
  • 标记
  • 锁定状态
  • 提及
  • 合并请求状态
  • 跟踪
注册登录再回复
加载中