Skip to content

Commit

Permalink
fix(tags): translate helper text
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Dec 20, 2024
1 parent 1d396c0 commit 3ea6176
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
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"
}

0 comments on commit 3ea6176

Please sign in to comment.