-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install vue-i18n and use translation API for static text
- Loading branch information
1 parent
6236b20
commit 86e6bba
Showing
5 changed files
with
229 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import PrimeVue from 'primevue/config'; | ||
import { type App } from 'vue'; | ||
import { createI18n } from 'vue-i18n'; | ||
|
||
const i18n = createI18n({ | ||
locale: 'en' | ||
}); | ||
|
||
export const webFormsPlugin = { | ||
install(app: App) { | ||
app.use(PrimeVue, { ripple: false }); // Collect has no ripple | ||
app.use(i18n); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.