nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

fix:Wrong URL to a missing translation page

Open SEWeiTung opened this issue 3 years ago • 0 comments

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

SEWeiTung avatar Oct 17 '22 09:10 SEWeiTung