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