Skip to content

Commit

Permalink
more i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Feb 12, 2024
1 parent 317debe commit bba53a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
<i>permanent</i> account, please go
<a class="line" href="https://peergos.net?signup=true">here</a>.
</p>
<AppTab title="Login">
<AppTab :title="translate('APP.LOGIN')">
<Login @initApp="init()" />
</AppTab>
<AppTab title="Signup">
<AppTab :title="translate('APP.SIGNUP')">
<Signup :token="token" />
</AppTab>
</AppTabs>
Expand Down Expand Up @@ -86,6 +86,7 @@ const ServerMessages = require("./ServerMessages.vue");
const routerMixins = require("../mixins/router/index.js");
const launcherMixin = require("../mixins/launcher/index.js");
const sandboxAppMixins = require("../mixins/sandbox/index.js");
const i18n = require("../i18n/index.js");
module.exports = {
components: {
Expand Down Expand Up @@ -150,7 +151,7 @@ module.exports = {
}
},
mixins: [routerMixins, sandboxAppMixins, launcherMixin],
mixins: [routerMixins, sandboxAppMixins, launcherMixin, i18n],
watch: {
network(newNetwork) {
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/en-GB.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
"APP.LOGIN":"Login",
"APP.SIGNUP":"Signup",
"LOGIN.BUTTON":"Sign in",
"LOGIN.USERNAME":"username",
"LOGIN.PASSWORD":"password",
Expand Down

0 comments on commit bba53a6

Please sign in to comment.