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

add useI18n composable #328

Merged
merged 2 commits into from
Oct 2, 2024
Merged

add useI18n composable #328

merged 2 commits into from
Oct 2, 2024

Conversation

Haberkamp
Copy link
Contributor

What?

I added a custom built useI18n composable for translating text.

Why?

Right now apps are forced to install the i18n plugin and configure it by themselves.

How?

I added a new useI18n hook that will be used by the components. You can toggle the locale by setting the locale prop on the mt-theme-provider component.

Testing?

I've written some unit tests that make sure the composable works as intended.

Anything Else?

Copy link

vercel bot commented Oct 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
meteor-admin-sdk-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 6:43am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
meteor-component-library ⬜️ Ignored (Inspect) Visit Preview Oct 2, 2024 6:43am

Copy link

pkg-pr-new bot commented Oct 2, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@328
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@328
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@328
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@328

commit: e04878b

@Haberkamp Haberkamp merged commit 194d24f into main Oct 2, 2024
10 checks passed
@Haberkamp Haberkamp deleted the add-custom-localization branch October 2, 2024 07:05
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

Successfully merging this pull request may close these issues.

2 participants