diff --git a/package-lock.json b/package-lock.json index d926a4a..3780021 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "animouto", - "version": "2.0.17", + "version": "2.0.18", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5876,6 +5876,11 @@ "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", "dev": true }, + "vue-i18n": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.18.1.tgz", + "integrity": "sha512-K+hFQJksF8Ph23pnhbwSyoQx+4Y1q/rh2o7GiXI/3rLCCrwanUbzudC8+trp0Mb8rn9y83DYF6RXNrMd+VsuCw==" + }, "vue-loader": { "version": "15.9.2", "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.2.tgz", diff --git a/package.json b/package.json index 9b41a8f..c9ab247 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "marked": "^1.0.0", "regenerator-runtime": "^0.13.5", "vue": "^2.6.11", + "vue-i18n": "^8.18.1", "vue-router": "^3.1.6", "webextension-polyfill": "^0.6.0" }, diff --git a/src/assets/lang/en.js b/src/assets/lang/en.js new file mode 100644 index 0000000..a357f5d --- /dev/null +++ b/src/assets/lang/en.js @@ -0,0 +1,48 @@ +export default { + app: { + about: { + name: "AniMouto v{version}", + description: "A little sister to enhance your AniList experience.", + links: { + title: "External Links", + anilist: "AniList", + anilist_desc: "This extension's onii-chan", + homepage: "Homepage", + homepage_desc: "Our homepage in case you want to share", + github: "GitHub", + github_desc: "AniMouto is open source and MIT licensed", + }, + built_with: { + title: "Built With", + node: "Node.js", + node_desc: "Developement environment", + vue: "Vue.js", + vue_desc: "Frontend framework", + webpack: "Webpack", + webpack_desc: "Compiler to allow loading as an extension", + graphql: "GraphQL", + graphql_desc: "The AniList API query language", + material_design: "Material Design", + material_design_desc: "All the icons used", + }, + changelog: "Changelog" + }, + login: { + title: "Login with AniList to use AniMouto", + auth_code: "Authorization Code", + submit: "Login", + sign_up: "Sign Up", + get_code: "Get Code", + please_wait: "Once authentication is complete, the page will change.", + ff_instruct_1: "To obtain an authorization code, click the \"Get Code\" button above. It should open a new window that will let you authenticate with AniList. Once authenticated, it will provide an authorization code for you to copy.", + ff_instruct_2: "Paste your authorization code into the text field to authenticate. Don't forget to close the extra window when you finish.", + ff_instruct_3: "Once authentication is complete, the page will change.", + } + }, + forum: { + title: "Recent Forum Activity", + query_fail: "Failed to get forum activity", + replied: "{user} replied {time} ago" + }, + generic_error: "Something bad happened" +} diff --git a/src/popup/components/about/About.vue b/src/popup/components/about/About.vue index 135cc0a..10392fd 100644 --- a/src/popup/components/about/About.vue +++ b/src/popup/components/about/About.vue @@ -1,26 +1,26 @@