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

allow for different locales/languages to show different articles and sidebar setup #130

Closed
divine-comedian opened this issue Jun 23, 2022 · 0 comments
Assignees

Comments

@divine-comedian
Copy link
Contributor

I'm creating this issue to track any solutions we can implement so we can finally merge the spanish and turkish translations that have been completed. More context below:

FROM DISCORD:

The problem is that we have some docs that are only in english and were never translated to other languages, however the docs app structure will default to showing the english version if there isn't a translated file for it
there is a file that exports an object and says which documents to show on the app, I want to change which documents are in that object based on the current translation locale set
I was able to find the variable that tells us which locale is being used but I don't know how to set conditions within a modules.export or how to import the information necessary.

I know I can get the current translation local with

import i18n from '@generated/i18n';

console.log(i18n.currentLocale)

but inside a module.export it doesn't like that

assigning @mateodaza and @CarlosQ96 for research and possible solutions!

@divine-comedian divine-comedian closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
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