Add OnLocalesInstalled signal to notify when new Locas are available

This commit is contained in:
SweetId
2023-10-21 12:02:34 -04:00
parent 55eee90abe
commit 5359e35ded
2 changed files with 24 additions and 2 deletions

View File

@@ -15,6 +15,8 @@ namespace Nz
using Dependencies = TypeList<Core>;
struct Config {};
NazaraStaticSignal(OnLocalesInstalled, const std::vector<std::string>&);
Localization(Config config);
~Localization();
@@ -23,6 +25,7 @@ namespace Nz
// Changes the locale
bool SetLocale(const std::string& locale);
std::vector<std::string> GetInstalledLocales() const;
bool FindIndexForKey(std::string_view key, size_t& index) const;
const std::string& GetStringAtIndex(size_t index) const;