mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
feat(urbanairship): Add locale override methods (#4579)
This commit is contained in:
parent
8047c9ad52
commit
126d44faf3
@ -1181,4 +1181,45 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
||||
openPreferenceCenter(prenferenceCenterId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides the locale setting.
|
||||
*
|
||||
* @param {string} locale language and optional country code.
|
||||
* @param {function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 14.3.0
|
||||
*/
|
||||
@Cordova()
|
||||
setCurrentLocale(locale: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently set locale.
|
||||
*
|
||||
* @param {function(locale)} [success] Success callback.
|
||||
* @param {string} success.locale The locale as a string.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 14.3.0
|
||||
*/
|
||||
@Cordova()
|
||||
getCurrentLocale(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the current locale.
|
||||
*
|
||||
* @param {function} [success] Success callback.
|
||||
* @param {function(message)} [failure] Failure callback.
|
||||
* @param {string} failure.message The error message.
|
||||
* @since 14.3.0
|
||||
*/
|
||||
@Cordova()
|
||||
clearLocale(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user