question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No keys were found

See original GitHub issue

I have tried following the stackblitz example but I get an error referring to missing keys. The following is one of them: WARNING(astro-i18next): missing translation key welcome.

astro-i18next.config.mjs

/** @type {import('astro-i18next').AstroI18nextConfig} */
export default {
  defaultLocale: "en",
  locales: ["en", "fr"],
  i18next: {
    // debug is convenient during development to check for missing keys
    debug: true,
    initImmediate: false,
    backend: {
      loadPath: './src/locales/{{lng}}.json',
    },
  },
  i18nextPlugins: { fsBackend: 'i18next-fs-backend' },
};

src/locales/en.json

{
    "pageTitle": "Welcome to Astro.",
    "welcome": "Welcome to <0>Astro</0>",
    "instructions": "Checkout the <0>src/pages</0> directory to get started.<1><2>Code Challenge:</2> Translate this page with your language of choice.",
    "cards": {
      "documentation": {
        "title": "Documentation",
        "body": "Learn how Astro works and explore the docs."
      },
      "integrations": {
        "title": "Integrations",
        "body": "Supercharge your projects with new frameworks and libraries."
      },
      "themes": {
        "title": "Themes",
        "body": "Explore a galaxy of community-built starter themes."
      },
      "chat": {
        "title": "Chat",
        "body": "Come and say hi to our amazing Discord community. ❤️"
      }
    }
}

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sNok3commented, Nov 30, 2022

EDIT: I was able to make it work only after running i18n:generate. I might have missed it in the docs, but I didn’t know that I had to run that command in order to make it work!

0reactions
yassinedoghricommented, Nov 30, 2022

Yes but also they are not working on local. It is requied to made some settings for my webpage

Sorry, I’m not sure to follow. What doesn’t work? The basics example works perfectly when I try it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GPA can't import PGP public key: "No keys were found." - Reddit
GPA can't import PGP public key: "No keys were found." I am trying to import a PGP public key into GPA 0.9.10 (GNU...
Read more >
No keys were found for the following IDs (STOPDecrypter)
If the STOPDecrypter displays this message: “No keys were found for the following IDs”, then there are two options: 1. the creator of...
Read more >
pgptool/Lobby - Gitter
... Can't read key file -> Unexpected exception: Neither Secret nor Public keys were found in the input file. No luck, I just...
Read more >
OpenPGPkeyserver No keys found after Submit OpenPGP ...
The answer to my question: OpenPGPkeyserver No keys found after Submit OpenPGP Public Key is related with a wrong value passed to the...
Read more >
Can't import public plaintext keys into GPG Keychain
I did some searching and found that once copied to clipboard (cmd+C) then in the main window, you just paste (CMD+V) which did...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found