Skip to content

Conversation

@noblepower1337
Copy link

@noblepower1337 noblepower1337 commented Jan 6, 2026

noblepower1337 Medium noblepower1337 /patch-2 → Lissy93/dashy Commits: 1 | Files Changed: 1 | Additions: 456 Label Powered by Pull Request Badge

Category:

One of: Bugfix / Feature / Code style update / Refactoring Only / Build related changes / Documentation / Other (please specify)

Overview

Briefly outline your new changes...

Issue Number (if applicable) #00

New Vars (if applicable)

If you've added any new build scripts, environmental variables, config file options, dependency or devDependency, please outline here

Screenshot (if applicable)

If you've introduced any significant UI changes, please include a screenshot

Code Quality Checklist (Please complete)

  • All changes are backwards compatible
  • All lint checks and tests are passing
  • There are no (new) build warnings or errors
  • (If a new config option is added) Attribute is outlined in the schema and documented
  • (If a new dependency is added) Package is essential, and has been checked out for security or performance
  • (If significant change) Bumps version in package.json

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit 0684652
🔍 Latest deploy log https://app.netlify.com/projects/dashy-dev/deploys/695d77344dccd70008abfc1a
😎 Deploy Preview https://deploy-preview-1977--dashy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Owner

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
But this won't yet work, until the language has been registered / imported. You can see the docs in https://github.com/Lissy93/dashy/blob/master/docs/multi-language-support.md#adding-a-new-language for how to do this.

In ./src/utils/languages.js, you need to do 2 small things:

First import your new translation file, do this at the top of the page.
E.g. import de from '@/assets/locales/de.json';

Second, add it to the array of languages, e.g:

export const languages = [
  {
    name: 'English',
    code: 'en',
    locale: en,
    flag: '🇬🇧',
  },
  {
    name: 'German', // The name of your language
    code: 'de', // The ISO code of your language
    locale: de, // The name of the file you imported (no quotes)
    flag: '🇩🇪', // An optional flag emoji
  },
];

You can also add your new language to the readme, under the Language Switching section and optionally include your name/ username if you'd like to be credited for your work. Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants