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

open an associated blogpost in other languages #6

Closed
muescha opened this issue Oct 29, 2019 · 6 comments
Closed

open an associated blogpost in other languages #6

muescha opened this issue Oct 29, 2019 · 6 comments

Comments

@muescha
Copy link

muescha commented Oct 29, 2019

maybe it is somehow possible to open the associated pages in the other languages?

if the filename is same then it maybe is easy but when the filenames are different then it should be somehow mapped?

maybe with a filename language mapping json between the translations?

@dionarodrigues
Copy link
Owner

Hi @muescha ! Sorry for the late response.

There is a file to control the menu for each language. See here: https://github.com/diogorodrigues/iceberg-gatsby-multilang/tree/master/config/menu

Are you talking about that?

Thanks

@muescha
Copy link
Author

muescha commented Jan 6, 2020

what i do

what i expected

what i see instead

@webmaeistro
Copy link

@muescha I see what you mean - did you find a workaround?

@muescha
Copy link
Author

muescha commented Jan 21, 2020

no i not have a workaround :(

@dionarodrigues
Copy link
Owner

@muescha I implemented what you suggested in the branch language-mapping. Thank you for the suggestions.

It is now possible to map pages by languages using a JSON file: https://github.com/diogorodrigues/iceberg-gatsby-multilang/blob/language-mapping/config/language-mapping/index.json

I will still need to improve the business logic of this implementation to ensure that it becomes more dynamic. You can check here: https://github.com/diogorodrigues/iceberg-gatsby-multilang/blob/language-mapping/src/components/Languages/index.js

@webmaeistro could you also check and give me the feedback, please?

@dionarodrigues
Copy link
Owner

Now this functionality is in master branch! ✌✔

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

3 participants