mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-16 13:13:59 +01:00
implement getLanguages()
This commit is contained in:
@@ -517,6 +517,12 @@ namespace monero {
|
||||
return wallet2->get_seed_language();
|
||||
}
|
||||
|
||||
vector<string> MoneroWallet::getLanguages() const {
|
||||
vector<string> languages;
|
||||
crypto::ElectrumWords::get_language_list(languages, true);
|
||||
return languages;
|
||||
}
|
||||
|
||||
// get primary address (default impl?)
|
||||
|
||||
string MoneroWallet::getAddress(uint32_t accountIdx, uint32_t subaddressIdx) const {
|
||||
|
||||
@@ -213,12 +213,12 @@ namespace monero {
|
||||
*/
|
||||
string getLanguage() const;
|
||||
|
||||
// /**
|
||||
// * Get a list of available languages for the wallet's seed.
|
||||
// *
|
||||
// * @return the available languages for the wallet's seed
|
||||
// */
|
||||
// virtual string[] getLanguages() const;
|
||||
/**
|
||||
* Get a list of available languages for the wallet's seed.
|
||||
*
|
||||
* @return the available languages for the wallet's seed
|
||||
*/
|
||||
vector<string> getLanguages() const;
|
||||
|
||||
/**
|
||||
* Get the wallet's primary address.
|
||||
|
||||
Reference in New Issue
Block a user