remove hardcoded 'code' string in clone_panel.tmpl (#34153) (#34158)

Backport #34153 by @wkelly17

This commit replaces the hardcoded string "code" in the clone panel
button with the i18n local for repo.code.

Co-authored-by: Will Kelly <67284402+wkelly17@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Giteabot
2025-04-09 18:14:28 +08:00
committed by GitHub
parent 3eda79647b
commit 39b6abf955

View File

@ -1,6 +1,6 @@
<button class="ui primary button js-btn-clone-panel"> <button class="ui primary button js-btn-clone-panel">
{{svg "octicon-code" 16}} {{svg "octicon-code" 16}}
<span>Code</span> <span>{{ctx.Locale.Tr "repo.code"}}</span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
</button> </button>
<div class="clone-panel-popup tippy-target"> <div class="clone-panel-popup tippy-target">