Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

🌐 Extracts some hard-coded strings (#2291)

Alicia Sykesa1328bb9fc0b
diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json
index 772cf3d9..028533ac 100644
--- a/src/assets/locales/en.json
+++ b/src/assets/locales/en.json
@@ -363,7 +363,9 @@
"save-locally-warning": "If you proceed, changes will be saved only in your browser. You should export a copy of your config for use on other machines. Would you like to continue?"
},
"edit-item": {
- "missing-title-err": "An item title is required"
+ "missing-title-err": "An item title is required",
+ "add-item-title": "Add New Item",
+ "add-item-description": "Click to add new item"
},
"edit-section": {
"edit-section-title": "Edit Section",
diff --git a/src/components/InteractiveEditor/EditModeTopBanner.vue b/src/components/InteractiveEditor/EditModeTopBanner.vue
index 4d7047c6..c69a8783 100644
--- a/src/components/InteractiveEditor/EditModeTopBanner.vue
+++ b/src/components/InteractiveEditor/EditModeTopBanner.vue
@@ -1,6 +1,6 @@
<template>
<div class="edit-mode-top-banner">
- <span>Edit Mode Enabled</span>
+ <span>{{ $t('interactive-editor.menu.edit-mode-subtitle') }}</span>
</div>
</template>
diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index 0eabf9c0..7f50ba55 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -48,8 +48,8 @@
<Item v-if="isEditMode"
:item="{
icon: ':heavy_plus_sign:',
- title: 'Add New Item',
- description: 'Click to add new item',
+ title: $t('interactive-editor.edit-item.add-item-title'),
+ description: $t('interactive-editor.edit-item.add-item-description'),
id: 'add-new',
}"
:isAddNew="true"