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.

Attempt to add FR as French; need help to understand my mistake before PR

See original GitHub issue

I basically replicated what @GermanHeim did with Spanish but when I generate my website, only the next.js part is translated, and what is in lang.js js ignored. So before doing my PR I would like to make it work 😉 image

  fr: {
    NAV: {
      INDEX: 'Blog',
      RSS: 'RSS',
      SEARCH: 'Chercher',
      ABOUT: 'À propos'
    },
    PAGINATION: {
      PREV: 'Précédent',
      NEXT: 'Suivant'
    },
    POST: {
      BACK: 'Retour',
      TOP: 'Haut'
    }
  }

    case 'fr':
    case 'fr-CA':
    case 'fr-FR':
      return lang.fr

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
JOduMonTcommented, Sep 16, 2021

as @craigary mentioned; in lib/lang.js language and country code have to be in lowercase (fr-fr, fr-ca, en-ca, en-uk, …) but in blog.config.js it is fine to write the country in UPPERCASE (lang: ‘fr-CA’)

1reaction
craigarycommented, Sep 6, 2021
Screen Shot 2021-09-06 at 23 32 03 I guess you might need to use lower case instead, btw can you help me to fix case 'es-ES' to 'es-es' please 😃
Read more comments on GitHub >

github_iconTop Results From Across the Web

When Should a Leader Apologize—and When Not?
It's appropriate that the leader assume responsibility for the offense. ... Acknowledgment of the mistake or wrongdoing, acceptance of responsibility, ...
Read more >
"Error compiling movie" during render or export in Adobe ...
Follow this guide to find solutions to the compiling error when rendering or exporting from Adobe Premiere Elements.
Read more >
20 Most Common French Idioms to Get You Talking Like a ...
We have native French tutors to help you correct any pronunciation error before it gets settled for good. Bon courage, les amis! Speechling...
Read more >
The Best French Grammar Checker: Top 10 Tools to ... - FluentU
Looking for the best French grammar checker? We put 10 French grammar checkers to the test to see how many grammar mistakes they...
Read more >
I was found not eligible for Express Entry and I can't change ...
An ineligible profile is no longer valid so you can't change it, even if you have new information. You will still have to...
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