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

crowdin setup and language dropdown #61

Merged
merged 36 commits into from
Nov 7, 2019
Merged

crowdin setup and language dropdown #61

merged 36 commits into from
Nov 7, 2019

Conversation

Shekharrajak
Copy link
Member

@Shekharrajak Shekharrajak commented Oct 26, 2019

  • crowdin config file added
  • project ID and api key is in environment variable

http://pr-61-numpy.org-newsite.surge.sh/

@joelachance
Copy link
Collaborator

Looks good here too! I'm assuming we need a dropdown to select a language?

@Shekharrajak
Copy link
Member Author

Looks good here too! I'm assuming we need a dropdown to select a language?

Yes! I am working on it. Once a language is selected all the links URL should be changed accordingly. i.e. if Hindi is selected then URL for /about should be /hi/about

@Shekharrajak
Copy link
Member Author

Crowdin machine translation: #62

@Shekharrajak
Copy link
Member Author

Shekharrajak commented Nov 1, 2019

@Shekharrajak
Copy link
Member Author

Demo for the language dropdown:

hugo-lang-gif

demo URL : http://pr-61-numpy.org-newsite.surge.sh/

@Shekharrajak
Copy link
Member Author

Shekharrajak commented Nov 1, 2019

For the demo purpose, I have used 3 languages: English, Dutch, and Hindi.
Note: Only Dutch language is translation is done using the crowdin machine translator. Hindi will look same as English (since it is not at all translated).

Default folder is content/en.

So I think we should use the en folder for the content and remove the content/*.md files.

@rgommers
Copy link
Member

rgommers commented Nov 1, 2019

dropdown looks good!

@Shekharrajak
Copy link
Member Author

Shekharrajak commented Nov 2, 2019

Now all the URLs will be according to the language selected. 🎉

@Shekharrajak
Copy link
Member Author

We can merge this PR for now.

@Shekharrajak Shekharrajak changed the title crowdin setup crowdin setup and language dropdown Nov 2, 2019
@rgommers
Copy link
Member

Ah actually the Hindi translation is already in here.

I like the look of this @Shekharrajak

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

Successfully merging this pull request may close these issues.

3 participants