GithubHelp home page GithubHelp logo

Comments (4)

potato4d avatar potato4d commented on May 19, 2024

https://ja.reactjs.org/languages は別ページなので、前のページを探す。みたいなストーリーは実現しづらそうです。ドロップダウンになっていれば別ではあるのですが。

日本語ドキュメントでは基本的に翻訳以外は本家に追従しておきたいので、もし必要であれば本家( https://github.com/reactjs/reactjs.org ) に Issue を作成いただけますか?

from ja.reactjs.org.

smikitky avatar smikitky commented on May 19, 2024

こちらは確かにそういう機能が欲しいのですが、本家 reactjs.org のリポジトリで対応しないといけない案件です(日本語版でだけこのUIに独自パッチ当てたとしても、日本語から他の言語に飛ぶ時にしか機能しません…)。

reactjs/react.dev#1772

こちらで既にIssueが上がっていましたので、とりあえず 👍 してあげてください。

from ja.reactjs.org.

smikitky avatar smikitky commented on May 19, 2024

MDNやWikipediaがそうなっていますが、普通はそれぞれの記事について、翻訳が存在する言語のみがドロップダウンには現れるものです。が、reactjs.orgの場合、そもそもどの言語でどの記事が翻訳済みなのかどうかを**管理しているデータがないので、これが実現しづらそうです。

「ドロップダウンを押して言語を切り替えたつもりがやっぱり英語のページが表示されて残念or混乱」みたいなことにならないためにはどうしたらいいんでしょう。

@potato4d Vue.js側でどうなっているかご存知ですか? ぱっと見た感じ、今は全言語で全文が翻訳済みだから問題なさそうですが、以前は、例えば「中文」をクリックしたのにリンク先がまだ英語、みたいな事態は存在したのでしょうか。

from ja.reactjs.org.

potato4d avatar potato4d commented on May 19, 2024

@smikitky
Vue.js のドキュメントは基本的にはコミュニティに決定が委ねられていますが、日本語の場合をご紹介します。

まず英文を全部コピーしてくる。その上で冒頭に「Under construction」の文字とともに、「翻訳中であるため一部英語である」旨を付け加えます。

この段階では、日本語にアクセスしても上記と英文が表示されます。

その後、長いページであればセクションごと、通常のページであればページごとに PR が送られ、翻訳できた時点で冒頭のコメントを削除します。

できる範囲のコンテンツは最大限見てもらうため、この状態を許容して進めています。

from ja.reactjs.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.