-
Notifications
You must be signed in to change notification settings - Fork 91
feat: change i18n configuration #245
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
# Conflicts: # package.json # pnpm-lock.yaml
|
I'm going to resolve conflicts and merge messages for lunaria 🤞 |
yanthomasdev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Lunaria workaround makes sense to me. Just pointing out that since we are not tracking the real files the Action won't show up in PRs, but since it's just temporary till I add the feature inside Lunaria it won't be a problem.
I would maybe make so lunaria-json-files are lunaria/files or something so everything concerning Lunaria outside config is in the same folder, but definitely not blocking.
I added that folder to |
app/utils/i18n.ts
Outdated
| const { t, d, n, ...rest } = useOriginalI18n() | ||
| const i18n = useOriginalI18n() | ||
|
|
||
| const { t, d, n, ...rest } = i18n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argg, undo this
|
I'm going to split this PR to include i18n configuration and handle hydration missmatch issues. |
|
storing the language in local storage works but it means there's always a flash of english UI before the js kicks in this is what i usually use in sveltekit, could take a stab at it, tho i'm not super familiar with nuxt just yet :P |
This PR includes:
rtl,numberFormats,dateTimeFormatsandpluralRulenpmx-settingsentry + page refresh) via client plugin => now language is restored on page refrreshisHydratedandwrapI18nhack at elk.zoneI have left the same languages used at elk.zone, keeping just the current used here.