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 loadLanguages(
37 ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager>,
38 ::std::string const&
39 ) = 0;
40
41 // vIndex: 5
42 virtual void loadAllLanguages(::ResourcePackManager&) = 0;
43
44 // vIndex: 6
45 virtual ::std::vector<::std::string> getLanguageCodesFromPack(::PackAccessStrategy const&) = 0;
46
47 // vIndex: 8
48 virtual void loadLanguageKeywordsFromPack(::PackManifest const&, ::PackAccessStrategy const&) = 0;
49
50 // vIndex: 7
51 virtual void loadLanguageKeywordsFromPack(
52 ::PackManifest const&,
54 ::std::vector<::std::string> const&
55 ) = 0;
56
57 // vIndex: 9
58 virtual void appendLanguageStringsFromPack(
59 ::PackManifest const&,
60 ::std::multimap<::std::string, ::std::pair<::std::string, ::std::string>> const&
61 ) = 0;
62
63 // vIndex: 10
64 virtual ::std::unordered_map<::std::string, ::std::string>
65 getLanguageKeywordsFromPack(::PackManifest const&, ::std::string const&) = 0;
66
67 // vIndex: 11
68 virtual void loadLangaugesByLocale(
69 ::std::unordered_multimap<::std::string, ::std::pair<::std::string, ::std::string>> const&
70 ) = 0;
71
72 // vIndex: 12
73 virtual void
74 appendAdditionalTranslations(::std::unordered_map<::std::string, ::std::string> const&, ::std::string const&) = 0;
75
76 // vIndex: 13
77 virtual void appendLanguageStrings(::PackAccessStrategy*) = 0;
78
79 // vIndex: 14
80 virtual void addI18nObserver(::I18nObserver&) = 0;
81
82 // vIndex: 15
83 virtual void chooseLanguage(::std::string const&) = 0;
84
85 // vIndex: 17
86 virtual ::std::string
87 get(::std::string const&, ::std::vector<::std::string> const&, ::std::shared_ptr<::Localization> const) = 0;
88
89 // vIndex: 16
90 virtual ::std::string get(::std::string const&, ::std::shared_ptr<::Localization> const) = 0;
91
92 // vIndex: 18
93 virtual ::std::string getPackKeywordValue(::PackManifest const&, ::std::string const&) = 0;
94
95 // vIndex: 19
96 virtual ::std::string getPackKeywordValueForTelemetry(::PackManifest const&, ::std::string const&) = 0;
97
98 // vIndex: 20
99 virtual bool hasPackKeyEntry(::PackManifest const&, ::std::string const&) = 0;
100
101 // vIndex: 21
102 virtual ::std::vector<::std::string> const& getSupportedLanguageCodes() = 0;
103
104 // vIndex: 22
105 virtual ::std::string const& getLanguageName(::std::string const&) = 0;
106
107 // vIndex: 23
108 virtual ::std::shared_ptr<::Localization> const getLocaleFor(::std::string const&) = 0;
109
110 // vIndex: 24
111 virtual ::std::string const& getLocaleCodeFor(::std::string const&) = 0;
112
113 // vIndex: 25
114 virtual ::gsl::not_null<::std::shared_ptr<::Localization const>> getCurrentLanguage() = 0;
115
116 // vIndex: 26
117 virtual bool languageSupportsHypenSplitting() = 0;
118
119 // vIndex: 27
120 virtual ::std::string getLocalizedAssetFileWithFallback(::std::string const&, ::std::string const&) = 0;
121
122 // vIndex: 28
123 virtual bool isPackKeyword(::std::string const&) = 0;
124 // NOLINTEND
125
126public:
127 // static variables
128 // NOLINTBEGIN
129 MCNAPI static ::std::add_lvalue_reference_t<char const[]> NeutralLangCode();
130 // NOLINTEND
131
132public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCNAPI void $dtor();
136 // NOLINTEND
137
138public:
139 // virtual function thunks
140 // NOLINTBEGIN
141
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCNAPI static void** $vftable();
148 // NOLINTEND
149};
150
151MCAPI I18n& getI18n();
Definition I18nObserver.h:14
Definition I18n.h:18
static MCAPI ::std::add_lvalue_reference_t< char const[]> NeutralLangCode()
MCAPI void $dtor()
static MCAPI void ** $vftable()
Definition Localization.h:12
Definition PackAccessStrategy.h:20
Definition PackManifest.h:31
Definition ResourceLoadManager.h:16
Definition ResourcePackManager.h:23