Skip to content

Commit acf506b

Browse files
ThomasMetzgerSimonClo
authored andcommitted
🌐(frontend) embed-block add some fr translations
1 parent 9bb7abb commit acf506b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteSuggestionMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const BlockNoteSuggestionMenu = () => {
2121
const editor = useBlockNoteEditor<DocsBlockSchema>();
2222
const { t } = useTranslation();
2323
const basicBlocksName = useDictionary().slash_menu.page_break.group;
24+
const advancedBlocksName = useDictionary().slash_menu.table.group;
2425

2526
const getSlashMenuItems = useMemo(() => {
2627
return async (query: string) =>
@@ -31,7 +32,7 @@ export const BlockNoteSuggestionMenu = () => {
3132
getPageBreakReactSlashMenuItems(editor),
3233
getCalloutReactSlashMenuItems(editor, t, basicBlocksName),
3334
getDividerReactSlashMenuItems(editor, t, basicBlocksName),
34-
getEmbedReactSlashMenuItems(editor, t, basicBlocksName),
35+
getEmbedReactSlashMenuItems(editor, t, advancedBlocksName),
3536
),
3637
query,
3738
),

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/EmbedBlock.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ export const IframeBlock = (
174174
return (
175175
<ResizableFileBlockWrapper
176176
{...(props as any)} // eslint-disable-line @typescript-eslint/no-explicit-any
177-
buttonText="Embed"
178-
buttonIcon={<Icon iconName="language" $size="18px" />}
177+
buttonText="Add a callout block"
178+
buttonIcon={<Icon iconName="link" $size="18px" />}
179179
>
180180
<IFrameViewer {...props} />
181181
</ResizableFileBlockWrapper>
@@ -200,17 +200,17 @@ export const getEmbedReactSlashMenuItems = (
200200
type: 'embed',
201201
});
202202
},
203-
aliases: ['newEmbed', 'iframeBN', 'linkBN'],
203+
aliases: ['embed', 'link', 'integration', 'lien'],
204204
group,
205205
icon: <Icon iconName="language" $size="18px" />,
206-
subtext: t('Add an embed block'),
206+
subtext: t('Add an embedded website'),
207207
},
208208
];
209209

210210
export const getEmbedFormattingToolbarItems = (
211211
t: TFunction<'translation', undefined>,
212212
): BlockTypeSelectItem => ({
213-
name: t('Embed'),
213+
name: t('Add an embedded website'),
214214
type: 'embed',
215215
icon: () => <Icon iconName="link" $size="16px" />,
216216
isSelected: (block: { type: string }) => block.type === 'embed',

src/frontend/apps/impress/src/i18n/translations.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@
421421
"Add": "Ajouter",
422422
"Add a callout block": "Ajouter un bloc d'alerte",
423423
"Add a horizontal line": "Ajouter une ligne horizontale",
424+
"Add an embedded website": "Ajouter tous type de contenus web (graphique, site internet, table Grist, etc.)",
424425
"Administrator": "Administrateur",
425426
"All docs": "Tous les documents",
426427
"An uncompromising writing experience.": "Une expérience d'écriture sans compromis.",
@@ -435,6 +436,7 @@
435436
"Banner image": "Image de la bannière",
436437
"Beautify": "Embellir",
437438
"Callout": "Alerte",
439+
"Embed": "Intégration site web",
438440
"Can't load this page, please check your internet connection.": "Impossible de charger cette page, veuillez vérifier votre connexion Internet.",
439441
"Cancel": "Annuler",
440442
"Close the modal": "Fermer la modale",

0 commit comments

Comments
 (0)