File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ export class Pushy {
110110 this . clientType = clientType || 'Pushy' ;
111111 this . options . server = SERVER_PRESETS [ this . clientType ] ;
112112
113- // Initialize i18n based on clientType
114- i18n . setLocale ( this . clientType === 'Pushy' ? 'zh' : 'en' ) ;
113+ i18n . setLocale ( options . locale ?? this . clientType === 'Pushy' ? 'zh' : 'en' ) ;
115114
116115 if ( Platform . OS === 'ios' || Platform . OS === 'android' ) {
117116 if ( ! options . appKey ) {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export interface ClientOptions {
8686 appKey : string ;
8787 server ?: UpdateServerConfig ;
8888 logger ?: UpdateEventsLogger ;
89+ locale ?: 'zh' | 'en' ;
8990 updateStrategy ?:
9091 | 'alwaysAlert'
9192 | 'alertUpdateAndIgnoreError'
You can’t perform that action at this time.
0 commit comments