Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host internationalized documentation / guides #380

Open
ngokevin opened this issue Oct 25, 2016 · 10 comments
Open

Host internationalized documentation / guides #380

ngokevin opened this issue Oct 25, 2016 · 10 comments

Comments

@ngokevin
Copy link
Member

Need to figure this out since besteric on Slack (cn) and taigagaita1 on Twitter (jp) have been translating documentation for respective communities.

Initial thought is to have docs/en, docs/jp, docs/cn in the A-Frame repo.

Questions around how to switch languages. Detect languages? Subdomain (cn.aframe.io)? Dropdown? How to have escape hatches to English in case of outdated/missing docs.

vue.js has cn.vuejs.org, but when it updates, it has to be translated and things go oudated.

@cvan
Copy link
Contributor

cvan commented Oct 25, 2016

Filed #218; can close that one. Would probably be easiest and SEO-friendly to use https://aframe.io/en-US/docs/…

@ngokevin
Copy link
Member Author

Thanks, saw that. I did consider l10n (translating strings hardcoded in the site) vs i18n (hosting translated pages) to be different tasks though. docs/en-US might be easier implementation-wise, does the order in that matter?

@cvan
Copy link
Contributor

cvan commented Oct 25, 2016

docs/en-US might be easier implementation-wise, does the order in that matter?

If the homepage and other non-doc pages intend on being localised, it's probably make sense to namespace all the URLs with the user's locale: /en-US/.

@ngokevin
Copy link
Member Author

Thinking about implementation planning to roll i18n forward:

  1. On A-Frame repository, create a folder in docs/ where translated documentation will live (docs/languages/es, docs/languages/cn). We expose the English documentation on the root level of the docs/ folder so we don't hide it since it will have the most activity. We use only language codes rather than language + country for simplicity.

  2. URL structure would look like https://aframe.io/cn/docs/, https://aframe.io/es/docs/. We'd have to update Hexo scripts to generate the site for each language.

  3. We currently use symlinks pointing to .multidep (node-multidep) to source documentation from the A-Frame repository into the A-Frame site. Figure out what needs to be done here to continue sourcing docs, but with that new URL structure.

  4. Frontend work, route/redirect to the appropriate language of the site, include a dropdown somewhere to switch between languages of the site.

  5. For now, I would only host translated introduction and guides, rather than API documentation (currently, the A-Frame site does not differentiate between the two). The API docs must be as accurate as possible whereas introduction and guides can be more liberal. So for sections such as components or primitives or core, simply show the English version (until/if we split API vs. Guides)

@besteric
Copy link

Any process about i18n @ngokevin

@cvan
Copy link
Contributor

cvan commented Feb 22, 2017

I'd recommend using L20n.js, btw.

@alexfuser
Copy link

alexfuser commented Jun 9, 2017

I'm in a group interested in locating A-frame in Spanish. I recommend that you use Pontoon. Which is a product to locate web in an easy way developed by Mozilla.

@ArianZargaran
Copy link

Cool!! Alex, good to be in contact. Are you working with @danielowho?
Another question was, Are we going to localize Spanish from MX or Latin America and Spain?

@alexfuser
Copy link

alexfuser commented Jul 17, 2017

Hi @ArianZargaran

We are working together with @danielowho .

First we are going to translate it to ES (neutral) and then we make the variants, okay?

@ArianZargaran
Copy link

Cool @alexfuser
Good to know, since the main object of translating doc files is to "spread A-Frame". Can you share the glossary and the style guide in order to use the same terminology?
As soon as you tell me what you guys are working on now, I'll just catch the flow and move to the next doc to translate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants