Skip to content

Commit

Permalink
Exposes transcend.getActiveLocale() (#142)
Browse files Browse the repository at this point in the history
* Exposes transcend.getActiveLocale()

* Exposes transcend.getActiveLocale()
  • Loading branch information
michaelfarrell76 authored Aug 7, 2024
1 parent 82c1be6 commit 24a14f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/airgap.js-types",
"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "12.1.0",
"version": "12.2.0",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export type ConsentManagerAPI = Readonly<{
showConsentManager(options?: ShowConsentManagerOptions): Promise<void>;
/** Set the current active language */
setActiveLocale(locale: ConsentManagerLanguageKey): Promise<void>;
/** Get the currently active locale */
getActiveLocale: () => ConsentManagerLanguageKey;
/** Toggle consent manager */
toggleConsentManager(options?: ShowConsentManagerOptions): Promise<void>;
/** Hide consent manager */
Expand Down

0 comments on commit 24a14f9

Please sign in to comment.