Added languages getter

This commit is contained in:
Alexander Cerutti
2021-10-31 20:54:31 +01:00
parent 7a417e45c5
commit a0cdc218dd
4 changed files with 52 additions and 12 deletions

View File

@@ -179,6 +179,14 @@ export default class PKPass extends Bundle {
this[certificatesSymbol] = certs;
}
/**
* Allows retrieving current languages
*/
public get languages() {
return Object.keys(this[localizationSymbol]);
}
/**
* Allows getting an image of the props
* that are composing your pass instance.