Skip to content

Fix i18n on new branch page

What does this MR do and why?

Page url: http://localhost:3000/<group>/<project>/-/branches/new

When the user switches prefer language to Chinese, the page for creating a branch (/-/branches/new) always displays a prompt in English.

The root cause is that the words in HAML file are hardcoded.

In fact, their translations are already in locale/gitlab.pot.

  • New Branch
  • Branch name
  • Existing branch name, tag, or commit SHA

Screenshots

Before After
截屏2022-08-19_16.17.38 截屏2022-08-19_16.15.58

cc JH EM @prajnamas

Edited by Baodong

Merge request reports