// This Header is auto generated by BDSLiteLoader Toolchain #pragma once #define AUTO_GENERATED #include "../Global.h" #include "Json.hpp" #include "Core.hpp" #define BEFORE_EXTRA // Include Headers or Declare Types Here class Localization; #undef BEFORE_EXTRA class I18n { #define AFTER_EXTRA // Add Member There public: LIAPI static Localization const* getLanguage(std::string const& languageCode); // inline static std::string get(std::string const& key) // { // return get(key, mCurrentLanguage); // } // inline static std::string get(std::string const& key, std::vector args) // { // return get(key, args, mCurrentLanguage); // } #undef AFTER_EXTRA #ifndef DISABLE_CONSTRUCTOR_PREVENTION_I18N public: class I18n& operator=(class I18n const &) = delete; I18n(class I18n const &) = delete; I18n() = delete; #endif public: #ifdef ENABLE_VIRTUAL_FAKESYMBOL_I18N #endif MCAPI static void appendLanguageStringsFromPack(class PackManifest const &, class std::multimap, struct std::less, class std::allocator>>> const &); MCAPI static void chooseLanguage(class Localization const &); MCAPI static void chooseLanguage(std::string const &); MCAPI static class std::unordered_map, struct std::equal_to, class std::allocator>> findAvailableLanguageNames(class ResourcePackManager &); MCAPI static std::vector findAvailableLanguages(class ResourcePackManager &); MCAPI static std::string get(std::string const &, std::vector const &); MCAPI static std::string get(std::string const &); MCAPI static std::vector getLanguageCodesFromPack(class PackAccessStrategy const &); MCAPI static std::string getPackKeywordValue(class PackManifest const &, std::string const &); MCAPI static std::string getPackKeywordValueForTelemetry(class PackManifest const &, std::string const &); MCAPI static void loadAllLanguages(class ResourcePackManager &); MCAPI static void loadLanguageKeywordsFromPack(class PackManifest const &, class PackAccessStrategy const &, std::vector const &); //private: MCAPI static void _findAvailableLanguageNames(class Json::Value const &, class std::unordered_map, struct std::equal_to, class std::allocator>> &); MCAPI static void _findAvailableLanguages(class Json::Value const &, std::vector &); MCAPI static class Localization * _findLocaleFor(std::string const &); MCAPI static std::string _generatePackKeyPrefix(class PackManifest const &); MCAPI static class Localization * _getAdditionalTranslationsBackupLocale(std::string const &, bool); MCAPI static void _getFormatParmas(std::string const &, std::vector &); MCAPI static class Localization & _getPackKeywordLocale(std::string const &); private: MCAPI static std::vector> mAdditionalTranslationsBackup; MCAPI static class std::mutex mAdditionalTranslationsBackupMutex; MCAPI static class Localization const * mCurrentLanguage; MCAPI static class Localization const * mCurrentPackMetaLanguage; MCAPI static class Localization const mEmptyLanguage; MCAPI static class std::unordered_map, struct std::hash, struct std::equal_to, class std::allocator>>> mFormatDictionary; MCAPI static std::vector mLanguageCodes; MCAPI static class std::unordered_map, struct std::equal_to, class std::allocator>> mLanguageNames; MCAPI static std::vector> mLanguages; MCAPI static std::vector> mPackKeywordLanguages; MCAPI static std::vector const mPackReservedKeys; MCAPI static class ResourcePackManager * mResourcePackManager; MCAPI static class Core::Subject mSubject; };