diff --git a/package-lock.json b/package-lock.json index 6cfee52..25ef642 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "bulma": "^1.0.4", "tailwindcss": "^4.1.6", "vue": "^3.5.13", + "vue-i18n": "^11.1.3", "vue-router": "^4.5.1" }, "devDependencies": { @@ -740,6 +741,50 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@intlify/core-base": { + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.1.3.tgz", + "integrity": "sha512-cMuHunYO7LE80azTitcvEbs1KJmtd6g7I5pxlApV3Jo547zdO3h31/0uXpqHc+Y3RKt1wo2y68RGSx77Z1klyA==", + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "11.1.3", + "@intlify/shared": "11.1.3" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.1.3.tgz", + "integrity": "sha512-7rbqqpo2f5+tIcwZTAG/Ooy9C8NDVwfDkvSeDPWUPQW+Dyzfw2o9H103N5lKBxO7wxX9dgCDjQ8Umz73uYw3hw==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "11.1.3", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.1.3.tgz", + "integrity": "sha512-pTFBgqa/99JRA2H1qfyqv97MKWJrYngXBA/I0elZcYxvJgcCw3mApAoPW3mJ7vx3j+Ti0FyKUFZ4hWxdjKaxvA==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, "node_modules/@isaacs/fs-minipass": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", @@ -5292,6 +5337,26 @@ "eslint": "^8.57.0 || ^9.0.0" } }, + "node_modules/vue-i18n": { + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.1.3.tgz", + "integrity": "sha512-Pcylh9z9S5+CJAqgbRZ3EKxFIBIrtY5YUppU722GIT65+Nukm0TCqiQegZnNLCZkXGthxe0cpqj0AoM51H+6Gw==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.1.3", + "@intlify/shared": "11.1.3", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-router": { "version": "4.5.1", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz", diff --git a/package.json b/package.json index 7e04878..01c2d56 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "bulma": "^1.0.4", "tailwindcss": "^4.1.6", "vue": "^3.5.13", + "vue-i18n": "^11.1.3", "vue-router": "^4.5.1" }, "devDependencies": { diff --git a/src/App.vue b/src/App.vue index 43b8cdc..3e6f163 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,48 @@ + + diff --git a/src/components/molecules/HomeSectionWrapper.vue b/src/components/molecules/HomeSectionWrapper.vue new file mode 100644 index 0000000..b9cb54e --- /dev/null +++ b/src/components/molecules/HomeSectionWrapper.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/components/organisms/HistorySection.vue b/src/components/organisms/HistorySection.vue deleted file mode 100644 index 6d0585a..0000000 --- a/src/components/organisms/HistorySection.vue +++ /dev/null @@ -1,34 +0,0 @@ - diff --git a/src/components/organisms/IntroSection.vue b/src/components/organisms/IntroSection.vue deleted file mode 100644 index cc51d91..0000000 --- a/src/components/organisms/IntroSection.vue +++ /dev/null @@ -1,37 +0,0 @@ - diff --git a/src/i18n/index.ts b/src/i18n/index.ts new file mode 100644 index 0000000..47577e2 --- /dev/null +++ b/src/i18n/index.ts @@ -0,0 +1,14 @@ +import { createI18n } from 'vue-i18n' +import en_US from '../locales/en_US' +import type { MessageSchema } from './types' + +const i18n = createI18n<[MessageSchema], 'en_US'>({ + legacy: false, + locale: 'en_US', + fallbackLocale: 'en_US', + messages: { + en_US: en_US + } +}) + +export default i18n \ No newline at end of file diff --git a/src/i18n/types.ts b/src/i18n/types.ts new file mode 100644 index 0000000..2a48527 --- /dev/null +++ b/src/i18n/types.ts @@ -0,0 +1,2 @@ +import en_US from '../locales/en_US' +export type MessageSchema = typeof en_US \ No newline at end of file diff --git a/src/locales/en_US.ts b/src/locales/en_US.ts new file mode 100644 index 0000000..09b2b9e --- /dev/null +++ b/src/locales/en_US.ts @@ -0,0 +1,16 @@ +export default { + "sections": [ + { + "title": "What is Viossa?", + "text": "Cat ipsum dolor sit amet, be superior eats owners hair then claws head gimme attention gimme attention gimme attention gimme attention gimme attention gimme attention just kidding i don't want it anymore meow bye. Avoid the new toy and just play with the box it came in floof tum, tickle bum, jellybean footies curly toes curl up and sleep on the freshly laundered towels hiss and stare at nothing then run suddenly away. Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human, feed me attack the dog then pretend like nothing happened jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap steal raw zucchini off kitchen counter...", + "image": "/src/assets/flakka.png", + "alt": "Flag of the Viossa Language" + }, + { + "title": "History of Viossa", + "text": "Knock over christmas tree... If it fits i sits, jump five feet high and sideways when a shadow moves, rub face on owner and sometimes switches in french and say \"miaou\" just because well why not. Good morning sunshine, pet a cat, rub its belly, endure blood and agony, quietly weep, keep rubbing belly. Chase ball of string stares at human while pushing stuff off a table ooooh feather moving feather! jump up to edge of bath, fall in then scramble in a mad panic to get out slap kitten brother with paw for chase mice. Have a lot of grump in yourself because you can't forget to be grumpy and not be like king grumpy cat mmmmmmmmmeeeeeeeeooooooooowwwwwwww but cough furball into food bowl then scratch owner for a new one. Scream at teh bath open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!", + "image": "/src/assets/flakka.png", + "alt": "Flag of the Viossa Language" + } + ] +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index c623e9d..55544ba 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,5 +5,6 @@ import { createRouter, createWebHistory } from "vue-router"; import { routes } from "vue-router/auto-routes"; const router = createRouter({ history: createWebHistory(), routes: routes }); +import i18n from './i18n' -createApp(App).use(router).mount("#app"); +createApp(App).use(i18n).use(router).mount("#app");