mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #18178 from overleaf/dp-insert-figure-translations
Add translations for insert figure dropdown GitOrigin-RevId: 6ffbf0229f7ac222619271688517bc50339c10f6
This commit is contained in:
+8
-4
@@ -39,14 +39,16 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||
openFigureModal(FigureModalSource.FILE_UPLOAD, 'file-upload')
|
||||
}
|
||||
>
|
||||
<Icon type="upload" fw /> Upload from computer
|
||||
<Icon type="upload" fw />
|
||||
{t('upload_from_computer')}
|
||||
</ListGroupItem>
|
||||
<ListGroupItem
|
||||
onClick={() =>
|
||||
openFigureModal(FigureModalSource.FILE_TREE, 'current-project')
|
||||
}
|
||||
>
|
||||
<Icon type="archive" fw /> From project files
|
||||
<Icon type="archive" fw />
|
||||
{t('from_project_files')}
|
||||
</ListGroupItem>
|
||||
{(hasLinkedProjectFileFeature || hasLinkedProjectOutputFileFeature) && (
|
||||
<ListGroupItem
|
||||
@@ -54,7 +56,8 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||
openFigureModal(FigureModalSource.OTHER_PROJECT, 'other-project')
|
||||
}
|
||||
>
|
||||
<Icon type="folder-open" fw /> From another project
|
||||
<Icon type="folder-open" fw />
|
||||
{t('from_another_project')}
|
||||
</ListGroupItem>
|
||||
)}
|
||||
{hasLinkUrlFeature && (
|
||||
@@ -63,7 +66,8 @@ export const InsertFigureDropdown = memo(function InsertFigureDropdown() {
|
||||
openFigureModal(FigureModalSource.FROM_URL, 'from-url')
|
||||
}
|
||||
>
|
||||
<Icon type="globe" fw /> From URL
|
||||
<Icon type="globe" fw />
|
||||
{t('from_url')}
|
||||
</ListGroupItem>
|
||||
)}
|
||||
</ToolbarButtonMenu>
|
||||
|
||||
Reference in New Issue
Block a user