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!
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:
console.log(i18n.currentLocale)