Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing i18n translation to the help us improve docs label #912

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions i18n/de/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@
"message": "Finden Sie diese Seite hilfreich?",
"description": "The label for the docs helpfulness question"
},
"theme.common.helpUsImproveTheDocs": {
"message": "Helfen Sie uns, die Dokumentation zu verbessern!",
"description": "The label for the edit this page button"
},
"theme.common.yes": {
"message": "Ja",
"description": "The label for the docs helpful button"
Expand Down
4 changes: 4 additions & 0 deletions i18n/es/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@
"message": "¿Te ha resultado útil esta página?",
"description": "The label for the docs helpfulness question"
},
"theme.common.helpUsImproveTheDocs": {
"message": "¡Ayúdanos a mejorar la documentación!",
"description": "The label for the edit this page button"
},
"theme.common.yes": {
"message": "Sí",
"description": "The label for the docs helpful button"
Expand Down
4 changes: 4 additions & 0 deletions i18n/fr/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@
"message": "Trouvez-vous cette page utile ?",
"description": "The label for the docs helpfulness question"
},
"theme.common.helpUsImproveTheDocs": {
"message": "Aidez-nous à améliorer la documentation !",
"description": "The label for the edit this page button"
},
"theme.common.yes": {
"message": "Oui",
"description": "The label for the docs helpful button"
Expand Down
4 changes: 4 additions & 0 deletions i18n/pt-BR/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@
"message": "Você achou esta página útil?",
"description": "The label for the docs helpfulness question"
},
"theme.common.helpUsImproveTheDocs": {
"message": "Ajude-nos a melhorar a documentação!",
"description": "The label for the edit this page button"
},
"theme.common.yes": {
"message": "Sim",
"description": "The label for the docs helpful button"
Expand Down
6 changes: 5 additions & 1 deletion i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@
"message": "当前页面对你是否有帮助?",
"description": "The label for the docs helpfulness question"
},
"theme.common.helpUsImproveTheDocs": {
"message": "帮助我们改进文档!",
"description": "The label for the edit this page button"
},
"theme.common.yes": {
"message": "是",
"description": "The label for the docs helpful button"
Expand All @@ -466,7 +470,7 @@
"description": "The label of the submit button"
},
"theme.common.thanksForTheFeedback": {
"message": "感谢你帮助我们改进 Logto 文档! 💜 ",
"message": "感谢你帮助我们改进 Logto 文档!💜",
"description": "The success message after submitting feedback"
},
"Hosted in 🇪🇺🇺🇸🇦🇺": {
Expand Down
8 changes: 6 additions & 2 deletions src/theme/EditMetaRow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { translate } from '@docusaurus/Translate';
import Translate, { translate } from '@docusaurus/Translate';
import type { Props } from '@theme/EditMetaRow';
import clsx from 'clsx';
import { useState } from 'react';
Expand Down Expand Up @@ -70,7 +70,11 @@ export default function EditMetaRow({ className, editUrl }: Props): JSX.Element
</div>
{editUrl && (
<div className={styles.editUrlColumn}>
<span className={styles.label}>Help us improve the docs!</span>
<span className={styles.label}>
<Translate id="theme.common.helpUsImproveTheDocs">
Help us improve the docs!
</Translate>
</span>
<div className={styles.buttons}>
<Button className={styles.button} href={editUrl}>
<EditIcon />
Expand Down
Loading