nodejs.org
nodejs.org copied to clipboard
fix:Wrong URL to a missing translation page
There're some files that aren't translated into the locale, which causes the "404 Page Not Found" Error when clicking "Edit on GitHub".
Now the current solution is: If the file doesn't exist, it will create a new blank file, with a link of translation guide there to guide what to do next. The user can either continue translating or abandoning it by clicking "Cancel" or "Submit".
Demo is here: https://github.com/nodejs/nodejs.org/new/main/locale/zh-cn/locale?filename=aaa.md&value=create%20your%20translation%20here,for%20more%20you%20can%20see:%20https://github.com/nodejs/nodejs.org/blob/main/TRANSLATION.md
Refs:https://github.com/nodejs/nodejs.org/issues/4884