massalabs / docs

Massa Protocol Documentation
https://docs.massa.net/
14 stars 65 forks source link

Localization - fr #265

Open qdrn opened 8 months ago

Ben-Rey commented 8 months ago

French button leads to 404, do we want to push it ?

qdrn commented 8 months ago

How did you test ?

qdrn commented 8 months ago

I think you can only test one language at a time locally FYI.

qdrn commented 7 months ago

Command to try:

npm run start -- --locale fr
gregLibert commented 7 months ago

Command to try:

npm run start -- --locale fr

This command fails on my end with the following error:

Module not found: Error: Can't resolve '@site/code-snippets/wallet-provider/main/code-snippets/generate-new-account.ts' in '/home/greg/code/docs/docs/build'

This is linked to code snippet generation. I wonder if I need to execute a command before executing the run, but I didn't find anything in the readme file saying so.

qdrn commented 7 months ago

Works for me on a clean install + freshly cloned repo.

➜  ~/dev/docs (264-localization) ✗ npm --version                                          22.36s
10.2.4
gregLibert commented 7 months ago

Works for me on a clean install + freshly cloned repo.

➜  ~/dev/docs (264-localization) ✗ npm --version                                          22.36s
10.2.4

Indeed, a fresh install works thanks.

But once compiled, I don't see any translation. Is it due to the website naming ?

qdrn commented 7 months ago

Nothing is translated. Pages were copied. Now someone can work on it/delete the ones not translated if we don't want to default to english.