Skip to content

Commit

Permalink
Login component i18n'd
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Feb 12, 2024
1 parent 110fb1f commit 317debe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
autofocus
name="username"
v-model="username"
placeholder="Username"
:placeholder="translate('LOGIN.USERNAME')"
ref="username"
@input="(val) => (username = username.toLowerCase())"
/>
Expand All @@ -17,10 +17,10 @@
:consumer_cancel_func="consumer_cancel_func"
:consumer_func="consumer_func">
</MultiFactorAuth>
<FormPassword v-model="password" placeholder="password" @keyup.native.enter="login()"/>
<FormPassword v-model="password" :placeholder="translate('LOGIN.PASSWORD')" @keyup.native.enter="login()"/>

<label class="checkbox__group">
Stay logged in
{{ translate('LOGIN.STAY') }}
<input
type="checkbox"
name="stayLoggedIn"
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/en-GB.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
"LOGIN.BUTTON":"Sign in"
"LOGIN.BUTTON":"Sign in",
"LOGIN.USERNAME":"username",
"LOGIN.PASSWORD":"password",
"LOGIN.STAY":"Stay logged in"
}

0 comments on commit 317debe

Please sign in to comment.