Attempt to add FR as French; need help to understand my mistake before PR
See original GitHub issueI 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 😉
- my line 7 in blog.config is now:
lang: 'fr-CA', // ['en-US', 'zh-CN', 'zh-HK', 'zh-TW', 'ja-JP', 'es-ES', 'fr-FR', 'fr-CA']
- and I added those line in ./lib/lang.js for French
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:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 inblog.config.js
it is fine to write the country in UPPERCASE (lang: ‘fr-CA’)