Skip to content

Commit 68f0094

Browse files
committed
Set language from browser settings
1 parent 73e55f4 commit 68f0094

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

api/paul_api/paul_api/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
LOCALE_PATHS = (os.path.join(BASE_DIR, "locale"),)
248248

249249
LANGUAGES = [
250-
("ro", _("Romanian")),
250+
("ro", _("Română")),
251251
("en", _("English")),
252252
]
253253

client/src/plugins/i18n.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const messages = {
157157
findOutMore: 'Find out more.',
158158
firstAndLastNameLabel: 'Name and surname',
159159
firstName: 'Name',
160-
forgotPassword: 'Did your forgot your password?',
160+
forgotPassword: 'Did you forget your password?',
161161
forgotPasswordInsertEmail: 'Enter the e-mail address and you will receive a message with the instructions.',
162162
forgotPasswordInstructionsConfirmation: 'You will receive an e-mail with a password reset link. If you dont find it, please check "spam" folder.',
163163
forgotPasswordSendInstructions: 'Send the instructions',
@@ -625,8 +625,9 @@ const messages = {
625625

626626

627627
const i18n = new VueI18n({
628-
locale: 'ro',
629-
fallbackLocale: 'en',
628+
locale: navigator.language.split('-')[0],
629+
// locale: process.env.LANGUAGE_CODE,
630+
fallbackLocale: 'ro',
630631
messages,
631632
})
632633

0 commit comments

Comments
 (0)