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(tags): translate helper text #1609

Merged
merged 1 commit into from
Dec 20, 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
6 changes: 3 additions & 3 deletions src/components/item/publish/customizedTags/CustomizedTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ export const CustomizedTags = ({ item }: Props): JSX.Element => {
<MultiSelectTagChipInput
itemId={item.id}
tagCategory={TagCategory.Discipline}
helpertext={BUILDER.TAGS_DISCIPLINE_PLACEHOLDER}
helpertext={t(BUILDER.TAGS_DISCIPLINE_HELPERTEXT)}
/>
<MultiSelectTagChipInput
itemId={item.id}
helpertext={BUILDER.TAGS_LEVEL_PLACEHOLDER}
helpertext={t(BUILDER.TAGS_LEVEL_HELPERTEXT)}
tagCategory={TagCategory.Level}
/>
<MultiSelectTagChipInput
itemId={item.id}
helpertext={t(BUILDER.TAGS_RESOURCE_TYPE_PLACEHOLDER)}
helpertext={t(BUILDER.TAGS_RESOURCE_TYPE_HELPERTEXT)}
tagCategory={TagCategory.ResourceType}
/>
</Stack>
Expand Down
6 changes: 3 additions & 3 deletions src/langs/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ export const BUILDER = {
DELETE_ITEM_LOGIN_SCHEMA_ALERT_TEXT: 'DELETE_ITEM_LOGIN_SCHEMA_ALERT_TEXT',
CREATE_FOLDER_BUTTON_TEXT: 'CREATE_FOLDER_BUTTON_TEXT',
TAGS_DESCRITPION: 'TAGS_DESCRITPION',
TAGS_DISCIPLINE_PLACEHOLDER: 'TAGS_DISCIPLINE_PLACEHOLDER',
TAGS_LEVEL_PLACEHOLDER: 'TAGS_LEVEL_PLACEHOLDER',
TAGS_RESOURCE_TYPE_PLACEHOLDER: 'TAGS_RESOURCE_TYPE_PLACEHOLDER',
TAGS_DISCIPLINE_HELPERTEXT: 'TAGS_DISCIPLINE_HELPERTEXT',
TAGS_LEVEL_HELPERTEXT: 'TAGS_LEVEL_HELPERTEXT',
TAGS_RESOURCE_TYPE_HELPERTEXT: 'TAGS_RESOURCE_TYPE_HELPERTEXT',
};
6 changes: 3 additions & 3 deletions src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
"ADD_TAG_OPTION_BUTTON_TEXT": "Add {{value}}",
"CREATE_FOLDER_BUTTON_TEXT": "Create Folder",
"TAGS_DESCRITPION": "Tags are keywords or terms that you can attach to your items. They describe the subject, context, project, or intended audience of your items. They help other users to find your content when they search in the library if your collection is published. You can find out more about tags in <1>the documentation</1>.",
"TAGS_DISCIPLINE_PLACEHOLDER": "Example: mathematics, history, biology",
"TAGS_LEVEL_PLACEHOLDER": "Example: elementary, high school, undergraduate",
"TAGS_RESOURCE_TYPE_PLACEHOLDER": "Example: article, video, quiz"
"TAGS_DISCIPLINE_HELPERTEXT": "Example: mathematics, history, biology",
"TAGS_LEVEL_HELPERTEXT": "Example: elementary, high school, undergraduate",
"TAGS_RESOURCE_TYPE_HELPERTEXT": "Example: article, video, quiz"
}
6 changes: 3 additions & 3 deletions src/langs/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
"ADD_TAG_OPTION_BUTTON_TEXT": "Ajouter {{value}}",
"CREATE_FOLDER_BUTTON_TEXT": "Nouveau Dossier",
"TAGS_DESCRITPION": "Les tags sont des mots-clés ou des termes qui peuvent être attachés aux éléments. Ils permettent de décrire le sujet, contexte, projet, ou l'audience de votre collection. Ils aident les autres utilisateurs à trouver votre contenu quand ils cherchent dans la librairie, si votre collection est publiée. Vous pouvez en apprendre plus sur les tags dans <1>la documentation</1>.",
"TAGS_DISCIPLINE_PLACEHOLDER": "Exemple: mathématiques, histoire, biologie",
"TAGS_LEVEL_PLACEHOLDER": "Exemple: école primaire, université, école préparatoire",
"TAGS_RESOURCE_TYPE_PLACEHOLDER": "Exemple: article, vidéo, quiz"
"TAGS_DISCIPLINE_HELPERTEXT": "Exemple: mathématiques, histoire, biologie",
"TAGS_LEVEL_HELPERTEXT": "Exemple: école primaire, université, école préparatoire",
"TAGS_RESOURCE_TYPE_HELPERTEXT": "Exemple: article, vidéo, quiz"
}
Loading