Skip to content

Commit 873711b

Browse files
committed
Translate the UI
1 parent 9837030 commit 873711b

File tree

81 files changed

+780
-514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+780
-514
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
<template>
2-
<UFFooterContent>
3-
Copyright 2024 - <a href="https://www.userfrosting.com">Created with UserFrosting</a> |
4-
Theme built with
5-
<a href="http://getuikit.com" title="Visit UIkit 3 site" target="_blank" data-uk-tooltip>
6-
<span data-uk-icon="uikit"></span>
7-
</a>
8-
</UFFooterContent>
2+
<UFFooterContent>{{ $t('COPYRIGHT', { year: new Date().getFullYear() }) }}</UFFooterContent>
93
</template>

packages/skeleton/app/assets/components/NavBar.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ const auth = useAuthStore()
2424
:username="auth.user.full_name"
2525
:avatar="auth.user.avatar"
2626
:meta="auth.user.user_name">
27-
<UFNavBarUserCardButton label="Admin Panel" :to="{ name: 'admin.dashboard' }" />
28-
<UFNavBarUserCardButton :label="$t('ACCOUNT.MY')" :to="{ name: 'account.settings' }" />
27+
<UFNavBarUserCardButton :label="$t('ADMIN_PANEL')" :to="{ name: 'admin.dashboard' }" />
28+
<UFNavBarUserCardButton
29+
:label="$t('ACCOUNT.SETTINGS')"
30+
:to="{ name: 'account.settings' }" />
2931
<UFNavBarUserCardButton :label="$t('LOGOUT')" @click="auth.logout()" />
3032
</UFNavBarUserCard>
3133
</UFNavBar>

packages/skeleton/app/assets/layouts/LayoutDashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SidebarMenuItems } from '@userfrosting/sprinkle-admin/components'
77
<template>
88
<NavBar />
99
<UFSideBar>
10-
<UFSideBarLabel label="Admin Panel" />
10+
<UFSideBarLabel :label="$t('ADMIN_PANEL')" />
1111
<SidebarMenuItems />
1212
</UFSideBar>
1313
<UFMainContent>

packages/skeleton/app/assets/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const router = createRouter({
3232
component: () => import('../layouts/LayoutDashboard.vue'),
3333
children: [...AdminRoutes],
3434
meta: {
35-
title: 'ADMIN'
35+
title: 'ADMIN_PANEL'
3636
}
3737
}
3838
]

packages/skeleton/app/assets/views/HomeView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const helloMsg = computed(() => {
3232

3333
<div class="uk-grid-small uk-child-width-auto" uk-grid>
3434
<div>
35-
<a class="uk-button uk-button-text" href="#">Read more</a>
35+
<a class="uk-button uk-button-text" href="#">{{ $t('READ_MORE') }}</a>
3636
</div>
3737
</div>
3838
</article>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* UserFrosting (http://www.userfrosting.com)
7+
*
8+
* @link https://github.com/userfrosting/UserFrosting
9+
* @copyright Copyright (c) 2013-2024 Alexander Weissman & Louis Charette
10+
* @license https://github.com/userfrosting/UserFrosting/blob/master/LICENSE.md (MIT License)
11+
*/
12+
13+
/**
14+
* US English translation.
15+
*/
16+
return [
17+
'ABOUT' => 'About',
18+
19+
'READ_MORE' => 'Read more',
20+
21+
'WELCOME_TO' => 'Welcome to {{title}}, {{user}}!',
22+
];
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* UserFrosting (http://www.userfrosting.com)
7+
*
8+
* @link https://github.com/userfrosting/UserFrosting
9+
* @copyright Copyright (c) 2013-2024 Alexander Weissman & Louis Charette
10+
* @license https://github.com/userfrosting/UserFrosting/blob/master/LICENSE.md (MIT License)
11+
*/
12+
13+
/**
14+
* French translations
15+
*/
16+
return [
17+
'ABOUT' => 'À propos',
18+
19+
'READ_MORE' => 'Lire la suite',
20+
21+
'WELCOME_TO' => 'Bienvenue sur {{title}}, {{user}}!',
22+
];

packages/sprinkle-account/app/assets/routes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default [
4747
auth: {
4848
redirect: { name: 'account.login' }
4949
},
50-
title: 'Account settings',
51-
description: 'Update your account settings, including email, name, and password.'
50+
title: 'ACCOUNT.SETTINGS',
51+
description: 'ACCOUNT.SETTINGS.DESCRIPTION'
5252
},
5353
component: () => import('../views/UserSettings.vue'),
5454
children: [

packages/sprinkle-account/app/locale/en_US/messages.php

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,35 @@
7070
'DESCRIPTION' => 'This password reset request could not be found, or has expired.',
7171
],
7272
],
73-
7473
'EMAIL_UPDATED' => 'Account email updated',
7574
'ERROR' => [
7675
'@TRANSLATION' => 'Error validating account',
7776
'MISSING_PARAM' => "Account can't be registered as '{{param}}' is required.",
7877
],
7978

79+
'HAVE_ONE' => 'Already have an account ?',
80+
8081
'MASTER_NOT_EXISTS' => 'You cannot register an account until the master account has been created!',
81-
'MY' => 'My Account',
82+
'MY' => 'My Account',//OK
8283

8384
'SETTINGS' => [
84-
'@TRANSLATION' => 'Account settings',
85-
'DESCRIPTION' => 'Update your account settings, including email, name, and password.',
85+
'@TRANSLATION' => 'Account settings',//OK
86+
'DESCRIPTION' => 'Update your account settings, including email, name, and password.',//OK
87+
'EMAIL' => 'Update Email',//OK
88+
'PASSWORD' => 'Update Password',//OK
89+
'PERSONAL' => 'Personal Information',//OK
8690
'UPDATED' => 'Account settings updated',
8791
],
8892

8993
'TOOLS' => 'Account tools',
9094

9195
'VERIFICATION' => [
9296
'NEW_LINK_SENT' => 'We have emailed a new verification link to {{email}}. Please check your inbox and spam folders for this email.',
93-
'RESEND' => 'Resend verification email',
97+
'RESEND' => 'Resend verification email',//OK
9498
'COMPLETE' => 'You have successfully verified your account. You can now login.',
95-
'EMAIL' => 'Please enter the email address you used to sign up, and your verification email will be resent.',
99+
'EMAIL' => 'Please enter the email address you used to sign up, and your verification email will be resent.',//OK
96100
'PAGE' => 'Resend the verification email for your new account.',
97-
'SEND' => 'Email the verification link for my account',
101+
'SEND' => 'Email the verification link for my account',//OK
98102
'TOKEN_NOT_FOUND' => 'Verification token does not exist / Account is already verified',
99103
],
100104
],
@@ -103,80 +107,72 @@
103107
'INVALID' => 'Invalid email',
104108
'IN_USE' => 'Email <strong>{{email}}</strong> is already in use.',
105109
'NOT_FOUND' => 'There is no account for <strong>{{email}}</strong>.',
106-
'VERIFICATION_REQUIRED' => 'Email (verification required - use a real address!)',
110+
'VERIFICATION_REQUIRED' => 'Email (verification required - use a real address!)',//OK
107111
],
108112

109113
'EMAIL_OR_USERNAME' => 'Username or email address',
110114

111-
'FIRST_NAME' => 'First name',
115+
'FIRST_NAME' => 'First name',//OK
112116

113-
'GUEST' => 'Guest',
117+
'GUEST' => 'Guest', //OK
114118

115119
'HEADER_MESSAGE_ROOT' => 'YOU ARE SIGNED IN AS THE ROOT USER',
116120

117-
'LAST_NAME' => 'Last name',
121+
'LAST_NAME' => 'Last name',//OK
118122
'LOCALE' => [
119-
'ACCOUNT' => 'The language and locale to use for your account',
123+
'ACCOUNT' => 'The language and locale to use for your account', //OK
120124
'INVALID' => '{{locale}} is not a valid locale.',
121125
],
122126
'LOGIN' => [
123-
'@TRANSLATION' => 'Login',
127+
'@TRANSLATION' => 'Login',//OK
124128
'ALREADY_COMPLETE' => 'You are already logged in!',
125129
'SOCIAL' => 'Or login with',
126130
'REQUIRED' => 'Sorry, you must be logged in to access this resource.',
127131
],
128-
'LOGOUT' => 'Logout',
132+
'LOGOUT' => 'Logout',//OK
129133

130134
'NAME' => 'Name',
131135

132-
'NAME_AND_EMAIL' => 'Name and email',
133-
134-
'PAGE' => [
135-
'LOGIN' => [
136-
'DESCRIPTION' => 'Sign in to your {{site_name}} account, or register for a new account.',
137-
'SUBTITLE' => 'Register for free, or sign in with an existing account.',
138-
'TITLE' => "Let's get started!",
139-
],
140-
],
136+
'NAME_AND_EMAIL' => 'Name and email',//OK
141137

142138
'PASSWORD' => [
143-
'@TRANSLATION' => 'Password',
139+
'@TRANSLATION' => 'Password',//OK
144140

145141
'BETWEEN' => 'Between {{min}}-{{max}} characters',
146142

147-
'CONFIRM' => 'Confirm password',
143+
'CONFIRM' => 'Confirm password',//OK
148144
'CONFIRM_CURRENT' => 'Please confirm your current password',
149-
'CONFIRM_NEW' => 'Confirm New Password',
150-
'CONFIRM_NEW_EXPLAIN' => 'Re-enter your new password',
151-
'CONFIRM_NEW_HELP' => 'Required only if selecting a new password',
145+
'CONFIRM_NEW' => 'Confirm New Password',//OK
146+
'CONFIRM_NEW_EXPLAIN' => 'Re-enter your new password',//OK
152147
'CREATE' => [
153148
'@TRANSLATION' => 'Create Password',
154149
'PAGE' => 'Choose a password for your new account.',
155150
'SET' => 'Set Password and Sign In',
156151
],
157-
'CURRENT' => 'Current Password',
158-
'CURRENT_EXPLAIN' => 'You must confirm your current password to make changes',
152+
'CURRENT' => 'Current Password',//OK
153+
'CURRENT_EXPLAIN' => 'You must confirm your current password to make changes',//OK
159154

160-
'FORGOTTEN' => 'Forgotten Password',
155+
'FORGOTTEN' => 'Forgotten Password',//OK
161156
'FORGET' => [
162-
'@TRANSLATION' => 'I forgot my password',
157+
'@TRANSLATION' => 'Forgot your password?',//OK
163158

164159
'COULD_NOT_UPDATE' => "Couldn't update password.",
165160
'EMAIL' => 'Please enter the email address you used to sign up. A link with instructions to reset your password will be emailed to you.',
166-
'EMAIL_SEND' => 'Email Password Reset Link',
161+
'EMAIL_SEND' => 'Email Password Reset Link',//OK
167162
'PAGE' => 'Get a link to reset your password.',
168163
'REQUEST_CANNED' => 'Lost password request cancelled.',
169164
'REQUEST_SENT' => 'If the email <strong>{{email}}</strong> matches an account in our system, a password reset link will be sent to <strong>{{email}}</strong>.',
170165
],
171166

172167
'HASH_FAILED' => 'Password hashing failed. Please contact a site administrator.',
173168
'INVALID' => "Current password doesn't match the one we have on record",
174-
'NEW' => 'New Password',
169+
'NEW' => 'New Password',//OK
175170
'NOTHING_TO_UPDATE' => 'You cannot update with the same password',
176171

177172
'RESET' => [
178-
'@TRANSLATION' => 'Reset Password',
173+
'@TRANSLATION' => 'Reset Password',//OK
179174
'CHOOSE' => 'Please choose a new password to continue.',
175+
'CONFIRM' => ' Are you sure you want to send <strong>{{full_name}} ({{ user_name }})</strong> a link that will allow them to reset their password ?',//OK
180176
'PAGE' => 'Choose a new password for your account.',
181177
'SEND' => 'Set New Password and Sign In',
182178
],
@@ -190,16 +186,16 @@
190186
],
191187

192188
'RATE_LIMIT_EXCEEDED' => 'The rate limit for this action has been exceeded. You must wait another {{delay}} seconds before you will be allowed to make another attempt.',
193-
194-
'REGISTER' => 'Register',
195-
'REGISTER_ME' => 'Sign me up',
189+
'REGISTER' => 'Register',//OK
190+
'REGISTER_ME' => 'Sign me up',//OK
196191
'REGISTRATION' => [
197192
'ERROR' => 'Registration error',
198193
'UNKNOWN' => 'A problem was encountered during the account registration process.',
199194
'COMPLETE_TYPE1' => 'You have successfully registered. You can now sign in.',
200195
'COMPLETE_TYPE2' => 'You have successfully registered. A link to activate your account has been sent to <strong>{{email}}</strong>. You will not be able to sign in until you complete this step.',
201196
'DISABLED' => "We're sorry, account registration has been disabled.",
202197
'LOGOUT' => "I'm sorry, you cannot register for an account while logged in. Please log out first.",
198+
'QUESTION' => "You don't have an account yet?",//OK
203199
'WELCOME' => 'Registration is fast and simple.',
204200
],
205201
'REMEMBER_ME' => 'Keep me signed in',
@@ -215,7 +211,7 @@
215211
'TOS_FOR' => 'Terms and Conditions for {{title}}',
216212

217213
'USERNAME' => [
218-
'@TRANSLATION' => 'Username',
214+
'@TRANSLATION' => 'Username',//OK
219215

220216
'CHOOSE' => 'Choose a unique username',
221217
'INVALID' => 'Invalid username',

0 commit comments

Comments
 (0)