LeviLamina
Loading...
Searching...
No Matches
I18n.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class I18nObserver;
11class Localization;
13class PackManifest;
16// clang-format on
17
18class I18n {
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 0
23 virtual ~I18n();
24
25 // vIndex: 1
26 virtual void clearLanguages() = 0;
27
28 // vIndex: 2
29 virtual ::std::vector<::std::string> findAvailableLanguages(::ResourcePackManager&) = 0;
30
31 // vIndex: 3
32 virtual ::std::unordered_map<::std::string, ::std::string> findAvailableLanguageNames(::ResourcePackManager&) = 0;
33
34 // vIndex: 4
35 virtual void
36 loadLanguages(::ResourcePackManager&, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager>, ::std::string const&) = 0;
37
38 // vIndex: 5
39 virtual void loadAllLanguages(::ResourcePackManager&) = 0;
40
41 // vIndex: 6
42 virtual ::std::vector<::std::string> getLanguageCodesFromPack(::PackAccessStrategy const&) = 0;
43
44 // vIndex: 8
45 virtual void loadLanguageKeywordsFromPack(::PackManifest const&, ::PackAccessStrategy const&) = 0;
46
47 // vIndex: 7
48 virtual void
49 loadLanguageKeywordsFromPack(::PackManifest const&, ::PackAccessStrategy const&, ::std::vector<::std::string> const&) = 0;
50
51 // vIndex: 9
52 virtual void
53 appendLanguageStringsFromPack(::PackManifest const&, ::std::multimap<::std::string, ::std::pair<::std::string, ::std::string>> const&) = 0;
54
55 // vIndex: 10
56 virtual ::std::unordered_map<::std::string, ::std::string>
57 getLanguageKeywordsFromPack(::PackManifest const&, ::std::string const&) = 0;
58
59 // vIndex: 11
60 virtual void
61 loadLangaugesByLocale(::std::
62 unordered_multimap<::std::string, ::std::pair<::std::string, ::std::string>> const&) = 0;
63
64 // vIndex: 12
65 virtual void
66 appendAdditionalTranslations(::std::unordered_map<::std::string, ::std::string> const&, ::std::string const&) = 0;
67
68 // vIndex: 13
69 virtual void appendLanguageStrings(::PackAccessStrategy*) = 0;
70
71 // vIndex: 14
72 virtual void addI18nObserver(::I18nObserver&) = 0;
73
74 // vIndex: 15
75 virtual void chooseLanguage(::std::string const&) = 0;
76
77 // vIndex: 17
78 virtual ::std::string
79 get(::std::string const&, ::std::vector<::std::string> const&, ::std::shared_ptr<::Localization> const) = 0;
80
81 // vIndex: 16
82 virtual ::std::string get(::std::string const&, ::std::shared_ptr<::Localization> const) = 0;
83
84 // vIndex: 18
85 virtual ::std::string getPackKeywordValue(::PackManifest const&, ::std::string const&) = 0;
86
87 // vIndex: 19
88 virtual ::std::string getPackKeywordValueForTelemetry(::PackManifest const&, ::std::string const&) = 0;
89
90 // vIndex: 20
91 virtual bool hasPackKeyEntry(::PackManifest const&, ::std::string const&) = 0;
92
93 // vIndex: 21
94 virtual ::std::vector<::std::string> const& getSupportedLanguageCodes() = 0;
95
96 // vIndex: 22
97 virtual ::std::string const& getLanguageName(::std::string const&) = 0;
98
99 // vIndex: 23
100 virtual ::std::shared_ptr<::Localization> const getLocaleFor(::std::string const&) = 0;
101
102 // vIndex: 24
103 virtual ::std::string const& getLocaleCodeFor(::std::string const&) = 0;
104
105 // vIndex: 25
106 virtual ::gsl::not_null<::std::shared_ptr<::Localization const>> getCurrentLanguage() = 0;
107
108 // vIndex: 26
109 virtual bool languageSupportsHypenSplitting() = 0;
110
111 // vIndex: 27
112 virtual ::std::string getLocalizedAssetFileWithFallback(::std::string const&, ::std::string const&) = 0;
113
114 // vIndex: 28
115 virtual bool isPackKeyword(::std::string const&) = 0;
116 // NOLINTEND
117
118public:
119 // static variables
120 // NOLINTBEGIN
121 MCAPI static ::std::add_lvalue_reference_t<char const[]> NeutralLangCode();
122 // NOLINTEND
123
124public:
125 // destructor thunk
126 // NOLINTBEGIN
127 MCAPI void $dtor();
128 // NOLINTEND
129
130public:
131 // virtual function thunks
132 // NOLINTBEGIN
133
134 // NOLINTEND
135
136public:
137 // vftables
138 // NOLINTBEGIN
139 MCAPI static void** $vftable();
140 // NOLINTEND
141};
142
143MCAPI I18n& getI18n();
Definition I18nObserver.h:14
Definition I18n.h:18
Definition Localization.h:12
Definition PackAccessStrategy.h:20
Definition PackManifest.h:19
Definition ResourceLoadManager.h:16
Definition ResourcePackManager.h:24