Skip to content

Commit

Permalink
fix(i18n): add translations for repo actions
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 4, 2024
1 parent b6d5822 commit c729cb1
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 3 deletions.
9 changes: 9 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "Created at {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revised at {{ .Date }}"

[view_the_page_source]
other = "View the page source"
14 changes: 14 additions & 0 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[created_at]
other = "Created at {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revised at {{ .Date }}"

[view_the_page_source]
other = "View the page source"
14 changes: 14 additions & 0 deletions i18n/ko.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[created_at]
other = "Created at {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revised at {{ .Date }}"

[view_the_page_source]
other = "View the page source"
9 changes: 9 additions & 0 deletions i18n/ms.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "Dihasilkan pada {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Disemak pada {{ .Date }}"

[view_the_page_source]
other = "View the page source"
9 changes: 9 additions & 0 deletions i18n/pt-br.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "Criado em {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revisado em {{ .Date }}"

[view_the_page_source]
other = "View the page source"
14 changes: 14 additions & 0 deletions i18n/ru.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[created_at]
other = "Created at {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revised at {{ .Date }}"

[view_the_page_source]
other = "View the page source"
9 changes: 9 additions & 0 deletions i18n/vi.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "Created at {{ .Date }}"

[edit_the_page]
other = "Edit the page"

[history]
other = "History"

[revised_at]
other = "Revised at {{ .Date }}"

[view_the_page_source]
other = "View the page source"
9 changes: 9 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "创建于{{ .Date }}"

[edit_the_page]
other = "编辑页面"

[history]
other = "历史"

[revised_at]
other = "修正于{{ .Date }}"

[view_the_page_source]
other = "查看源码"
9 changes: 9 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[created_at]
other = "創建於{{ .Date }}"

[edit_the_page]
other = "編輯頁面"

[history]
other = "歷史"

[revised_at]
other = "修正於{{ .Date }}"

[view_the_page_source]
other = "查看源碼"
6 changes: 3 additions & 3 deletions layouts/partials/hb/modules/revision/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,23 @@
{{- if $icons -}}
{{- partial "icons/icon" (dict "vendor" "bs" "name" "eye" "className" "me-1") -}}
{{- end -}}
View page source
{{ i18n "view_the_page_source" }}
</a>
{{- end }}
{{- with $editURL }}
<a class="text-decoration-none" href="{{ . }}" rel="external" target="_blank">
{{- if $icons -}}
{{- partial "icons/icon" (dict "vendor" "bs" "name" "pencil-square" "className" "me-1") -}}
{{- end -}}
Edit this page
{{ i18n "edit_the_page" }}
</a>
{{- end }}
{{- with $historyURL}}
<a class="text-decoration-none" href="{{ . }}" rel="external" target="_blank">
{{- if $icons -}}
{{- partial "icons/icon" (dict "vendor" "bs" "name" "clock" "className" "me-1") -}}
{{- end -}}
History
{{ i18n "history" }}
</a>
{{- end }}
</div>
Expand Down

0 comments on commit c729cb1

Please sign in to comment.