Skip to content

Commit 4519e3e

Browse files
committed
chore: include locales in dev script
1 parent 19388df commit 4519e3e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

dev.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ globalThis.PlusAuthWidget = window.PlusAuthWidget = PlusAuthWidget
55
if (!window.PlusAuth) {
66

77
window['PlusAuth'] = {
8-
ui_locales: [
9-
{ name: 'Turkce', value: 'tr' },
10-
{ name: 'English', value: 'en' },
11-
],
128
params: {
9+
ui_locales: 'tr en',
1310
state: '018f00d8-bfd5-731a-b23f-738dfdd28b40'
1411
},
1512
client: {
@@ -78,6 +75,10 @@ if (!window.PlusAuth) {
7875
}
7976
const auth = new PlusAuthWidget('#pa__app', {
8077
locale: {
78+
locales: {
79+
'tr': { label: 'Turkce', codes: ['tr'] },
80+
'en': { label: 'English', codes: ['en'] },
81+
},
8182
defaultLocale: 'en',
8283
dictionary: {
8384
tr: {

0 commit comments

Comments
 (0)