mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
feat(urbanairship): Add locale override methods (#4579)
This commit is contained in:
@@ -1181,4 +1181,45 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
|
|||||||
openPreferenceCenter(prenferenceCenterId: string): Promise<any> {
|
openPreferenceCenter(prenferenceCenterId: string): Promise<any> {
|
||||||
return;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user