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!

:globe_with_meridians: Adds translations for widget text

Alicia Sykes27404f604461
diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json
index ff90586b..f8e05fea 100644
--- a/src/assets/locales/en.json
+++ b/src/assets/locales/en.json
@@ -1,263 +1,275 @@
-{
- "home": {
- "no-results": "No Search Results",
- "no-data": "No Data Configured",
- "no-items-section": "No Items to Show Yet"
- },
- "search": {
- "search-label": "Search",
- "search-placeholder": "Start typing to filter",
- "clear-search-tooltip": "Clear Search",
- "enter-to-search-web": "Press enter to search the web"
- },
- "login": {
- "title": "Dashy",
- "username-label": "Username",
- "password-label": "Password",
- "login-button": "Login",
- "remember-me-label": "Remember me for",
- "remember-me-never": "Never",
- "remember-me-hour": "4 Hours",
- "remember-me-day": "1 Day",
- "remember-me-week": "1 Week",
- "remember-me-long-time": "A long time",
- "error-missing-username": "Missing Username",
- "error-missing-password": "Missing Password",
- "error-incorrect-username": "User not found",
- "error-incorrect-password": "Incorrect Password",
- "success-message": "Logging in...",
- "logout-message": "Logged Out",
- "already-logged-in-title": "Already Logged In",
- "already-logged-in-text": "You're logged in as",
- "proceed-to-dashboard": "Proceed to Dashboard",
- "log-out-button": "Logout",
- "proceed-guest-button": "Proceed as Guest"
- },
- "config": {
- "main-tab": "Main Menu",
- "view-config-tab": "View Config",
- "edit-config-tab": "Edit Config",
- "custom-css-tab": "Custom Styles",
- "heading": "Configuration Options",
- "download-config-button": "View / Export Config",
- "edit-config-button": "Edit Config",
- "edit-css-button": "Edit Custom CSS",
- "cloud-sync-button": "Enable Cloud Sync",
- "edit-cloud-sync-button": "Edit Cloud Sync",
- "rebuild-app-button": "Rebuild Application",
- "change-language-button": "Change App Language",
- "reset-settings-button": "Reset Local Settings",
- "app-info-button": "App Info",
- "backup-note": "It is recommend to make a backup of your configuration before making changes.",
- "reset-config-msg-l1": "This will remove all user settings from local storage, but won't effect your 'conf.yml' file.",
- "reset-config-msg-l2": "You should first backup any changes you've made locally, if you want to use them in the future.",
- "reset-config-msg-l3": "Are you sure you want to proceed?",
- "data-cleared-msg": "Data cleared successfully",
- "actions-label": "Actions",
- "copy-config-label": "Copy Config",
- "data-copied-msg": "Config has been copied to clipboard",
- "reset-config-label": "Reset Config",
- "css-save-btn": "Save Changes",
- "css-note-label": "Note",
- "css-note-l1": "You will need to refresh the page for your changes to take effect.",
- "css-note-l2": "Styles overrides are only stored locally, so it is recommended to make a copy of your CSS.",
- "css-note-l3": "To remove all custom styles, delete the contents and hit Save Changes"
- },
- "alternate-views": {
- "alternate-view-heading": "Switch View",
- "default": "Default",
- "workspace": "Workspace",
- "minimal": "Minimal"
- },
- "settings": {
- "theme-label": "Theme",
- "layout-label": "Layout",
- "layout-auto": "Auto",
- "layout-horizontal": "Horizontal",
- "layout-vertical": "Vertical",
- "item-size-label": "Item Size",
- "item-size-small": "Small",
- "item-size-medium": "Medium",
- "item-size-large": "Large",
- "config-launcher-label": "Config",
- "config-launcher-tooltip": "Update Configuration",
- "sign-out-tooltip": "Sign Out",
- "sign-in-tooltip": "Log In",
- "sign-in-welcome": "Hello {username}!"
- },
- "updates": {
- "app-version-note": "Dashy version",
- "up-to-date": "Up-to-Date",
- "out-of-date": "Update Available",
- "unsupported-version-l1": "You are using an unsupported version of Dashy",
- "unsupported-version-l2": "For the best experience, and recent security patches, please update to"
- },
- "language-switcher": {
- "title": "Change Application Language",
- "dropdown-label": "Select a Language",
- "save-button": "Save",
- "success-msg": "Language Updated to"
- },
- "theme-maker": {
- "title": "Theme Configurator",
- "export-button": "Export Custom Variables",
- "reset-button": "Reset Styles for",
- "show-all-button": "Show All Variables",
- "change-fonts-button": "Change Fonts",
- "save-button": "Save",
- "cancel-button": "Cancel",
- "saved-toast": "{theme} Updated Successfully",
- "copied-toast": "Theme data for {theme} copied to clipboard",
- "reset-toast": "Custom Colors for {theme} Removed"
- },
- "config-editor": {
- "save-location-label": "Save Location",
- "location-local-label": "Apply Locally",
- "location-disk-label": "Write Changes to Config File",
- "save-button": "Save Changes",
- "preview-button": "Preview Changes",
- "valid-label": "Config is Valid",
- "status-success-msg": "Task Complete",
- "status-fail-msg": "Task Failed",
- "success-msg-disk": "Config file written to disk successfully",
- "success-msg-local": "Local changes saved successfully",
- "success-note-l1": "The app should rebuild automatically.",
- "success-note-l2": "This may take up to a minute.",
- "success-note-l3": "You will need to refresh the page for changes to take effect.",
- "error-msg-save-mode": "Please select a Save Mode: Local or File",
- "error-msg-cannot-save": "An error occurred saving config",
- "error-msg-bad-json": "Error in JSON, possibly malformed",
- "warning-msg-validation": "Validation Warning",
- "not-admin-note": "You cannot write changed to disk, because you are not logged in as an admin"
- },
- "app-rebuild": {
- "title": "Rebuild Application",
- "rebuild-note-l1": "A rebuild is required for changes written to the conf.yml file to take effect.",
- "rebuild-note-l2": "This should happen automatically, but if it hasn't, you can manually trigger it here.",
- "rebuild-note-l3": "This is not required for modifications stored locally.",
- "rebuild-button": "Start Build",
- "rebuilding-status-1": "Building...",
- "rebuilding-status-2": "This may take a few minutes",
- "error-permission": "You don't have permission to trigger this action",
- "success-msg": "Build completed successfully",
- "fail-msg": "Build operation failed",
- "reload-note": "A page reload is now required for changes to take effect",
- "reload-button": "Reload Page"
- },
- "cloud-sync": {
- "title": "Cloud Backup & Restore",
- "intro-l1": "Cloud backup and restore is an optional feature, that enables you to upload your config to the internet, and then restore it on any other device or instance of Dashy.",
- "intro-l2": "All data is fully end-to-end encrypted with AES, using your password as the key.",
- "intro-l3": "For more info, please see the",
- "backup-title-setup": "Make a Backup",
- "backup-title-update": "Update Backup",
- "password-label-setup": "Choose a Password",
- "password-label-update": "Enter your Password",
- "backup-button-setup": "Backup",
- "backup-button-update": "Update Backup",
- "backup-id-label": "Your Backup ID",
- "backup-id-note": "This is used to restore from backups later. So keep it, along with your password somewhere safe.",
- "restore-title": "Restore a Backup",
- "restore-id-label": "Restore ID",
- "restore-password-label": "Password",
- "restore-button": "Restore",
- "backup-missing-password": "Missing Password",
- "backup-error-unknown": "Unable to process request",
- "backup-error-password": "Incorrect password. Please enter your current password.",
- "backup-success-msg": "Completed Successfully",
- "restore-success-msg": "Config Restored Successfully"
- },
- "menu": {
- "open-section-title": "Open In",
- "sametab": "Current Tab",
- "newtab": "New Tab",
- "modal": "Pop-Up Modal",
- "workspace": "Workspace View",
- "options-section-title": "Options",
- "edit-item": "Edit",
- "move-item": "Copy or Move",
- "remove-item": "Remove"
- },
- "context-menus": {
- "item": {
- "open-section-title": "Open In",
- "sametab": "Current Tab",
- "newtab": "New Tab",
- "modal": "Pop-Up Modal",
- "workspace": "Workspace View",
- "options-section-title": "Options",
- "edit-item": "Edit",
- "move-item": "Copy or Move",
- "remove-item": "Remove"
- },
- "section": {
- "open-section": "Open Section",
- "edit-section": "Edit",
- "move-section": "Move To",
- "remove-section": "Remove"
- }
- },
- "interactive-editor": {
- "menu": {
- "start-editing-tooltip": "Enter the Interactive Editor",
- "edit-site-data-subheading": "Edit Site Data",
- "edit-page-info-btn": "Edit Page Info",
- "edit-page-info-tooltip": "App title, description, nav links, footer text, etc",
- "edit-app-config-btn": "Edit App Config",
- "edit-app-config-tooltip": "All other app configuration options",
- "config-save-methods-subheading": "Config Saving Options",
- "save-locally-btn": "Save Locally",
- "save-locally-tooltip": "Save config locally, to browser storage. This will not affect your config file, but changes will only be saved on this device",
- "save-disk-btn": "Save to Disk",
- "save-disk-tooltip": "Save config to the conf.yml file on disk. This will backup, and then over-write your existing config",
- "export-config-btn": "Export Config",
- "export-config-tooltip": "View and export new config, either to a file, or to clipboard",
- "cloud-backup-btn": "Backup to Cloud",
- "cloud-backup-tooltip": "Save encrypted backup of configuration to cloud",
- "edit-raw-config-btn": "Edit Raw Config",
- "edit-raw-config-tooltip": "View and modify raw config via JSON editor",
- "cancel-changes-btn": "Cancel Edit",
- "cancel-changes-tooltip": "Reset current modifications, and exit Edit Mode. This will not affect your saved config",
- "edit-mode-name": "Edit Mode",
- "edit-mode-subtitle": "You are in Edit Mode",
- "edit-mode-description": "This means you can make modifications to your config, and preview the results, but until you save, none of your changes will be preserved.",
- "save-stage-btn": "Save",
- "cancel-stage-btn": "Cancel"
- },
- "edit-section": {
- "edit-section-title": "Edit Section",
- "add-section-title": "Add New Section",
- "edit-tooltip": "Click to Edit, or right-click for more options",
- "remove-confirm": "Are you sure you want to remove this section? This action can be undone later."
- },
- "edit-app-config": {
- "warning-msg-title": "Proceed with Caution",
- "warning-msg-l1": "The following options are for advanced app configuration.",
- "warning-msg-l2": "If you are unsure about any of the fields, please reference the",
- "warning-msg-docs": "documentation",
- "warning-msg-l3": "to avoid unintended consequences."
- },
- "export": {
- "export-title": "Export Config",
- "copy-clipboard-btn": "Copy to Clipboard",
- "copy-clipboard-tooltip": "Copy all app config to system clipboard, in YAML format",
- "download-file-btn": "Download as File",
- "download-file-tooltip": "Download all app config to your device, in a YAML file",
- "view-title": "View Config"
- }
- },
- "widgets": {
- "general": {
- "loading": "Loading...",
- "show-more": "Expand Details",
- "show-less": "Show Less"
- },
- "clock": {},
- "weather": {},
- "weather-forecast": {},
- "tfl-status": {
- "good-service-all": "Good Service on all Lines",
- "good-service-rest": "Good Service on all other Lines"
- }
- }
-}
\ No newline at end of file
+{
+ "home": {
+ "no-results": "No Search Results",
+ "no-data": "No Data Configured",
+ "no-items-section": "No Items to Show Yet"
+ },
+ "search": {
+ "search-label": "Search",
+ "search-placeholder": "Start typing to filter",
+ "clear-search-tooltip": "Clear Search",
+ "enter-to-search-web": "Press enter to search the web"
+ },
+ "login": {
+ "title": "Dashy",
+ "username-label": "Username",
+ "password-label": "Password",
+ "login-button": "Login",
+ "remember-me-label": "Remember me for",
+ "remember-me-never": "Never",
+ "remember-me-hour": "4 Hours",
+ "remember-me-day": "1 Day",
+ "remember-me-week": "1 Week",
+ "remember-me-long-time": "A long time",
+ "error-missing-username": "Missing Username",
+ "error-missing-password": "Missing Password",
+ "error-incorrect-username": "User not found",
+ "error-incorrect-password": "Incorrect Password",
+ "success-message": "Logging in...",
+ "logout-message": "Logged Out",
+ "already-logged-in-title": "Already Logged In",
+ "already-logged-in-text": "You're logged in as",
+ "proceed-to-dashboard": "Proceed to Dashboard",
+ "log-out-button": "Logout",
+ "proceed-guest-button": "Proceed as Guest"
+ },
+ "config": {
+ "main-tab": "Main Menu",
+ "view-config-tab": "View Config",
+ "edit-config-tab": "Edit Config",
+ "custom-css-tab": "Custom Styles",
+ "heading": "Configuration Options",
+ "download-config-button": "View / Export Config",
+ "edit-config-button": "Edit Config",
+ "edit-css-button": "Edit Custom CSS",
+ "cloud-sync-button": "Enable Cloud Sync",
+ "edit-cloud-sync-button": "Edit Cloud Sync",
+ "rebuild-app-button": "Rebuild Application",
+ "change-language-button": "Change App Language",
+ "reset-settings-button": "Reset Local Settings",
+ "app-info-button": "App Info",
+ "backup-note": "It is recommend to make a backup of your configuration before making changes.",
+ "reset-config-msg-l1": "This will remove all user settings from local storage, but won't effect your 'conf.yml' file.",
+ "reset-config-msg-l2": "You should first backup any changes you've made locally, if you want to use them in the future.",
+ "reset-config-msg-l3": "Are you sure you want to proceed?",
+ "data-cleared-msg": "Data cleared successfully",
+ "actions-label": "Actions",
+ "copy-config-label": "Copy Config",
+ "data-copied-msg": "Config has been copied to clipboard",
+ "reset-config-label": "Reset Config",
+ "css-save-btn": "Save Changes",
+ "css-note-label": "Note",
+ "css-note-l1": "You will need to refresh the page for your changes to take effect.",
+ "css-note-l2": "Styles overrides are only stored locally, so it is recommended to make a copy of your CSS.",
+ "css-note-l3": "To remove all custom styles, delete the contents and hit Save Changes"
+ },
+ "alternate-views": {
+ "alternate-view-heading": "Switch View",
+ "default": "Default",
+ "workspace": "Workspace",
+ "minimal": "Minimal"
+ },
+ "settings": {
+ "theme-label": "Theme",
+ "layout-label": "Layout",
+ "layout-auto": "Auto",
+ "layout-horizontal": "Horizontal",
+ "layout-vertical": "Vertical",
+ "item-size-label": "Item Size",
+ "item-size-small": "Small",
+ "item-size-medium": "Medium",
+ "item-size-large": "Large",
+ "config-launcher-label": "Config",
+ "config-launcher-tooltip": "Update Configuration",
+ "sign-out-tooltip": "Sign Out",
+ "sign-in-tooltip": "Log In",
+ "sign-in-welcome": "Hello {username}!"
+ },
+ "updates": {
+ "app-version-note": "Dashy version",
+ "up-to-date": "Up-to-Date",
+ "out-of-date": "Update Available",
+ "unsupported-version-l1": "You are using an unsupported version of Dashy",
+ "unsupported-version-l2": "For the best experience, and recent security patches, please update to"
+ },
+ "language-switcher": {
+ "title": "Change Application Language",
+ "dropdown-label": "Select a Language",
+ "save-button": "Save",
+ "success-msg": "Language Updated to"
+ },
+ "theme-maker": {
+ "title": "Theme Configurator",
+ "export-button": "Export Custom Variables",
+ "reset-button": "Reset Styles for",
+ "show-all-button": "Show All Variables",
+ "change-fonts-button": "Change Fonts",
+ "save-button": "Save",
+ "cancel-button": "Cancel",
+ "saved-toast": "{theme} Updated Successfully",
+ "copied-toast": "Theme data for {theme} copied to clipboard",
+ "reset-toast": "Custom Colors for {theme} Removed"
+ },
+ "config-editor": {
+ "save-location-label": "Save Location",
+ "location-local-label": "Apply Locally",
+ "location-disk-label": "Write Changes to Config File",
+ "save-button": "Save Changes",
+ "preview-button": "Preview Changes",
+ "valid-label": "Config is Valid",
+ "status-success-msg": "Task Complete",
+ "status-fail-msg": "Task Failed",
+ "success-msg-disk": "Config file written to disk successfully",
+ "success-msg-local": "Local changes saved successfully",
+ "success-note-l1": "The app should rebuild automatically.",
+ "success-note-l2": "This may take up to a minute.",
+ "success-note-l3": "You will need to refresh the page for changes to take effect.",
+ "error-msg-save-mode": "Please select a Save Mode: Local or File",
+ "error-msg-cannot-save": "An error occurred saving config",
+ "error-msg-bad-json": "Error in JSON, possibly malformed",
+ "warning-msg-validation": "Validation Warning",
+ "not-admin-note": "You cannot write changed to disk, because you are not logged in as an admin"
+ },
+ "app-rebuild": {
+ "title": "Rebuild Application",
+ "rebuild-note-l1": "A rebuild is required for changes written to the conf.yml file to take effect.",
+ "rebuild-note-l2": "This should happen automatically, but if it hasn't, you can manually trigger it here.",
+ "rebuild-note-l3": "This is not required for modifications stored locally.",
+ "rebuild-button": "Start Build",
+ "rebuilding-status-1": "Building...",
+ "rebuilding-status-2": "This may take a few minutes",
+ "error-permission": "You don't have permission to trigger this action",
+ "success-msg": "Build completed successfully",
+ "fail-msg": "Build operation failed",
+ "reload-note": "A page reload is now required for changes to take effect",
+ "reload-button": "Reload Page"
+ },
+ "cloud-sync": {
+ "title": "Cloud Backup & Restore",
+ "intro-l1": "Cloud backup and restore is an optional feature, that enables you to upload your config to the internet, and then restore it on any other device or instance of Dashy.",
+ "intro-l2": "All data is fully end-to-end encrypted with AES, using your password as the key.",
+ "intro-l3": "For more info, please see the",
+ "backup-title-setup": "Make a Backup",
+ "backup-title-update": "Update Backup",
+ "password-label-setup": "Choose a Password",
+ "password-label-update": "Enter your Password",
+ "backup-button-setup": "Backup",
+ "backup-button-update": "Update Backup",
+ "backup-id-label": "Your Backup ID",
+ "backup-id-note": "This is used to restore from backups later. So keep it, along with your password somewhere safe.",
+ "restore-title": "Restore a Backup",
+ "restore-id-label": "Restore ID",
+ "restore-password-label": "Password",
+ "restore-button": "Restore",
+ "backup-missing-password": "Missing Password",
+ "backup-error-unknown": "Unable to process request",
+ "backup-error-password": "Incorrect password. Please enter your current password.",
+ "backup-success-msg": "Completed Successfully",
+ "restore-success-msg": "Config Restored Successfully"
+ },
+ "menu": {
+ "open-section-title": "Open In",
+ "sametab": "Current Tab",
+ "newtab": "New Tab",
+ "modal": "Pop-Up Modal",
+ "workspace": "Workspace View",
+ "options-section-title": "Options",
+ "edit-item": "Edit",
+ "move-item": "Copy or Move",
+ "remove-item": "Remove"
+ },
+ "context-menus": {
+ "item": {
+ "open-section-title": "Open In",
+ "sametab": "Current Tab",
+ "newtab": "New Tab",
+ "modal": "Pop-Up Modal",
+ "workspace": "Workspace View",
+ "options-section-title": "Options",
+ "edit-item": "Edit",
+ "move-item": "Copy or Move",
+ "remove-item": "Remove"
+ },
+ "section": {
+ "open-section": "Open Section",
+ "edit-section": "Edit",
+ "move-section": "Move To",
+ "remove-section": "Remove"
+ }
+ },
+ "interactive-editor": {
+ "menu": {
+ "start-editing-tooltip": "Enter the Interactive Editor",
+ "edit-site-data-subheading": "Edit Site Data",
+ "edit-page-info-btn": "Edit Page Info",
+ "edit-page-info-tooltip": "App title, description, nav links, footer text, etc",
+ "edit-app-config-btn": "Edit App Config",
+ "edit-app-config-tooltip": "All other app configuration options",
+ "config-save-methods-subheading": "Config Saving Options",
+ "save-locally-btn": "Save Locally",
+ "save-locally-tooltip": "Save config locally, to browser storage. This will not affect your config file, but changes will only be saved on this device",
+ "save-disk-btn": "Save to Disk",
+ "save-disk-tooltip": "Save config to the conf.yml file on disk. This will backup, and then over-write your existing config",
+ "export-config-btn": "Export Config",
+ "export-config-tooltip": "View and export new config, either to a file, or to clipboard",
+ "cloud-backup-btn": "Backup to Cloud",
+ "cloud-backup-tooltip": "Save encrypted backup of configuration to cloud",
+ "edit-raw-config-btn": "Edit Raw Config",
+ "edit-raw-config-tooltip": "View and modify raw config via JSON editor",
+ "cancel-changes-btn": "Cancel Edit",
+ "cancel-changes-tooltip": "Reset current modifications, and exit Edit Mode. This will not affect your saved config",
+ "edit-mode-name": "Edit Mode",
+ "edit-mode-subtitle": "You are in Edit Mode",
+ "edit-mode-description": "This means you can make modifications to your config, and preview the results, but until you save, none of your changes will be preserved.",
+ "save-stage-btn": "Save",
+ "cancel-stage-btn": "Cancel"
+ },
+ "edit-section": {
+ "edit-section-title": "Edit Section",
+ "add-section-title": "Add New Section",
+ "edit-tooltip": "Click to Edit, or right-click for more options",
+ "remove-confirm": "Are you sure you want to remove this section? This action can be undone later."
+ },
+ "edit-app-config": {
+ "warning-msg-title": "Proceed with Caution",
+ "warning-msg-l1": "The following options are for advanced app configuration.",
+ "warning-msg-l2": "If you are unsure about any of the fields, please reference the",
+ "warning-msg-docs": "documentation",
+ "warning-msg-l3": "to avoid unintended consequences."
+ },
+ "export": {
+ "export-title": "Export Config",
+ "copy-clipboard-btn": "Copy to Clipboard",
+ "copy-clipboard-tooltip": "Copy all app config to system clipboard, in YAML format",
+ "download-file-btn": "Download as File",
+ "download-file-tooltip": "Download all app config to your device, in a YAML file",
+ "view-title": "View Config"
+ }
+ },
+ "widgets": {
+ "general": {
+ "loading": "Loading...",
+ "show-more": "Expand Details",
+ "show-less": "Show Less",
+ "open-link": "Continue Reading"
+ },
+ "pi-hole": {
+ "status-heading": "Status"
+ },
+ "stat-ping": {
+ "up": "Online",
+ "down": "Offline"
+ },
+ "system-info": {
+ "uptime": "Uptime"
+ },
+ "flight-data": {
+ "arrivals": "Arrivals",
+ "departures": "Departures"
+ },
+ "tfl-status": {
+ "good-service-all": "Good Service on all Lines",
+ "good-service-rest": "Good Service on all other Lines"
+ }
+ }
+}
diff --git a/src/components/Widgets/Apod.vue b/src/components/Widgets/Apod.vue
index 5633cc70..2d53c39e 100644
--- a/src/components/Widgets/Apod.vue
+++ b/src/components/Widgets/Apod.vue
@@ -9,7 +9,7 @@
<p class="copyright">{{ copyright }}</p>
<p class="description">{{ truncatedDescription }}</p>
<p @click="toggleShowFull" class="expend-details-btn">
- {{ showFullDesc ? 'Show Less' : ' Expand Details' }}
+ {{ showFullDesc ? $t('widgets.general.show-less') : $t('widgets.general.show-more') }}
</p>
</div>
</template>
diff --git a/src/components/Widgets/CveVulnerabilities.vue b/src/components/Widgets/CveVulnerabilities.vue
index 0599e90c..cca63fcb 100644
--- a/src/components/Widgets/CveVulnerabilities.vue
+++ b/src/components/Widgets/CveVulnerabilities.vue
@@ -15,7 +15,7 @@
<p class="description">
{{ cve.description | formatDescription }}
<a v-if="cve.description.length > 350" class="read-more" :href="cve.url" target="_blank">
- Keep Reading
+ {{ $t('widgets.general.open-link') }}
</a>
</p>
</div>
diff --git a/src/components/Widgets/Flights.vue b/src/components/Widgets/Flights.vue
index 1805f67d..40adc857 100644
--- a/src/components/Widgets/Flights.vue
+++ b/src/components/Widgets/Flights.vue
@@ -7,7 +7,7 @@
<!-- Departures -->
<div v-if="departures.length > 0" class="flight-group">
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
- Departures
+ {{ $t('widgets.flight-data.departures') }}
</h3>
<div v-for="flight in departures" :key="flight.number" class="flight" v-tooltip="tip(flight)">
<p class="info flight-time">{{ flight.time | formatDate }}</p>
@@ -18,7 +18,7 @@
<!-- Arrivals -->
<div v-if="arrivals.length > 0" class="flight-group">
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
- Arrivals
+ {{ $t('widgets.flight-data.arrivals') }}
</h3>
<div v-for="flight in arrivals" :key="flight.number" class="flight" v-tooltip="tip(flight)">
<p class="info flight-time">{{ flight.time | formatDate }}</p>
diff --git a/src/components/Widgets/PiHoleStats.vue b/src/components/Widgets/PiHoleStats.vue
index ae5721ae..9d9ba730 100644
--- a/src/components/Widgets/PiHoleStats.vue
+++ b/src/components/Widgets/PiHoleStats.vue
@@ -2,7 +2,7 @@
<div class="pi-hole-stats-wrapper">
<!-- Current Status -->
<div v-if="status" class="status">
- <span class="status-lbl">Status:</span>
+ <span class="status-lbl">{{ $t('widgets.pi-hole.status-heading') }}:</span>
<span :class="`status-val ${getStatusColor(status)}`">{{ status | capitalize }}</span>
</div>
<!-- Block Pie Chart -->
diff --git a/src/components/Widgets/RssFeed.vue b/src/components/Widgets/RssFeed.vue
index ef24df31..e00807dc 100644
--- a/src/components/Widgets/RssFeed.vue
+++ b/src/components/Widgets/RssFeed.vue
@@ -21,7 +21,9 @@
</div>
</a>
<div class="post-body" v-html="post.description"></div>
- <a class="continue-reading-btn" :href="post.link">Continue Reading</a>
+ <a class="continue-reading-btn" :href="post.link">
+ {{ $t('widgets.general.open-link') }}
+ </a>
</div>
</div>
<!-- End Feed Content -->
diff --git a/src/components/Widgets/StatPing.vue b/src/components/Widgets/StatPing.vue
index 2378b114..6d4b1a4a 100644
--- a/src/components/Widgets/StatPing.vue
+++ b/src/components/Widgets/StatPing.vue
@@ -9,8 +9,12 @@
<!-- Title -->
<p class="service-name">
{{ service.name }}:
- <span v-if="service.online" class="status-online">Online</span>
- <span v-else class="status-offline">Offline</span>
+ <span v-if="service.online" class="status-online">
+ {{ $t('widgets.stat-ping.up') }}
+ </span>
+ <span v-else class="status-offline">
+ {{ $t('widgets.stat-ping.down') }}
+ </span>
</p>
<!-- Charts -->
<div class="charts">
diff --git a/src/components/Widgets/SystemInfo.vue b/src/components/Widgets/SystemInfo.vue
index 96749512..3d83b0b1 100644
--- a/src/components/Widgets/SystemInfo.vue
+++ b/src/components/Widgets/SystemInfo.vue
@@ -5,7 +5,8 @@
{{ info.username | isUsername }}{{ info.hostname }}
</p>
<p class="system">
- {{ info.system }} <span class="gap">|</span> Uptime: {{ info.uptime | makeUptime }}
+ {{ info.system }} <span class="gap">|</span>
+ {{ $t('widgets.system-info.uptime') }}: {{ info.uptime | makeUptime }}
</p>
</div>
<div class="some-charts">
diff --git a/src/components/Widgets/Weather.vue b/src/components/Widgets/Weather.vue
index 80ad02ee..a2928d4b 100644
--- a/src/components/Widgets/Weather.vue
+++ b/src/components/Widgets/Weather.vue
@@ -17,7 +17,7 @@
</div>
<!-- Show/ hide toggle button -->
<p class="more-details-btn" @click="toggleDetails" v-if="weatherDetails.length > 0">
- {{ showDetails ? 'Show Less' : ' Expand Details' }}
+ {{ showDetails ? $t('widgets.general.show-less') : $t('widgets.general.show-more') }}
</p>
</div>
</template>
diff --git a/src/components/Widgets/WeatherForecast.vue b/src/components/Widgets/WeatherForecast.vue
index e1b54b04..83f883f8 100644
--- a/src/components/Widgets/WeatherForecast.vue
+++ b/src/components/Widgets/WeatherForecast.vue
@@ -25,7 +25,7 @@
</div>
</div>
<p class="more-details-btn" @click="toggleDetails" v-if="showDetails">
- Show Less
+ {{ $t('widgets.general.show-less') }}
</p>
</div>
</template>