-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebase and adapt to vue module changes
- Loading branch information
1 parent
14a2024
commit 6475496
Showing
12 changed files
with
141 additions
and
175 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
2 changes: 1 addition & 1 deletion
2
src/main/resources/generator/client/common/i18n/app/locales/en.ts
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,7 +1,7 @@ | ||
import type { Translation } from '@/Translations'; | ||
|
||
export const en: Translation = { | ||
common: { | ||
home: { | ||
translationEnabled: 'Internationalization enabled', | ||
}, | ||
}; |
2 changes: 1 addition & 1 deletion
2
src/main/resources/generator/client/common/i18n/app/locales/fr.ts
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,7 +1,7 @@ | ||
import type { Translation } from '@/Translations'; | ||
|
||
export const fr: Translation = { | ||
common: { | ||
home: { | ||
translationEnabled: 'Internationalisation activée', | ||
}, | ||
}; |
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
17 changes: 17 additions & 0 deletions
17
src/main/resources/generator/client/vue/i18n/src/test/HomePageVue.spec.ts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue'; | ||
import { shallowMount, VueWrapper } from '@vue/test-utils'; | ||
import { describe, expect, it } from 'vitest'; | ||
|
||
let wrapper: VueWrapper; | ||
|
||
const wrap = () => { | ||
wrapper = shallowMount(HomepageVue); | ||
}; | ||
|
||
describe('App I18next', () => { | ||
it('should renders with translation', () => { | ||
wrap(); | ||
|
||
expect(wrapper.text()).toContain('translationEnabled'); | ||
}); | ||
}); |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/test/resources/projects/vue/HomepageVue.spec.ts.template
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue'; | ||
import { shallowMount, VueWrapper } from '@vue/test-utils'; | ||
import { describe, expect, it } from 'vitest'; | ||
|
||
let wrapper: VueWrapper; | ||
|
||
const wrap = () => { | ||
wrapper = shallowMount(HomepageVue); | ||
}; | ||
|
||
describe('App I18next', () => { | ||
it('should renders with translation', () => { | ||
wrap(); | ||
|
||
expect(wrapper.text()).toContain('translationEnabled'); | ||
}); | ||
}); |
Oops, something went wrong.