|
5 | 5 | using UniGetUI.Core.Data; |
6 | 6 | using UniGetUI.Core.Logging; |
7 | 7 | using UniGetUI.PackageEngine.Enums; |
| 8 | +using Architecture = UniGetUI.PackageEngine.Enums.Architecture; |
8 | 9 |
|
9 | 10 | namespace UniGetUI.Core.Language |
10 | 11 | { |
@@ -151,45 +152,17 @@ private static Person[] LoadLanguageTranslatorList() |
151 | 152 |
|
152 | 153 | public static class CommonTranslations |
153 | 154 | { |
154 | | - public static readonly Dictionary<Architecture, string> ArchNames = new() |
155 | | - { |
156 | | - { Architecture.X64, "x64" }, |
157 | | - { Architecture.X86, "x86" }, |
158 | | - { Architecture.Arm64, "arm64" }, |
159 | | - { Architecture.Arm, "arm32" }, |
160 | | - }; |
161 | | - |
162 | | - public static readonly Dictionary<string, Architecture> InvertedArchNames = new() |
163 | | - { |
164 | | - { "x64", Architecture.X64 }, |
165 | | - { "x86", Architecture.X86 }, |
166 | | - { "arm64", Architecture.Arm64 }, |
167 | | - { "arm32", Architecture.Arm }, |
168 | | - }; |
169 | | - |
170 | | - public static readonly Dictionary<PackageScope, string> ScopeNames = new() |
| 155 | + public static readonly Dictionary<string, string> ScopeNames = new() |
171 | 156 | { |
172 | 157 | { PackageScope.Global, "Machine | Global" }, |
173 | 158 | { PackageScope.Local, "User | Local" }, |
174 | 159 | }; |
175 | 160 |
|
176 | | - public static readonly Dictionary<string, PackageScope> InvertedScopeNames = new() |
| 161 | + public static readonly Dictionary<string, string> InvertedScopeNames = new() |
177 | 162 | { |
178 | 163 | { "Machine | Global", PackageScope.Global }, |
179 | 164 | { "User | Local", PackageScope.Local }, |
180 | 165 | }; |
181 | | - |
182 | | - public static readonly Dictionary<PackageScope, string> ScopeNames_NonLang = new() |
183 | | - { |
184 | | - { PackageScope.Global, "machine" }, |
185 | | - { PackageScope.Local, "user" }, |
186 | | - }; |
187 | | - |
188 | | - public static readonly Dictionary<string, PackageScope> InvertedScopeNames_NonLang = new() |
189 | | - { |
190 | | - { "machine", PackageScope.Global }, |
191 | | - { "user", PackageScope.Local }, |
192 | | - }; |
193 | 166 | } |
194 | 167 | } |
195 | 168 |
|
0 commit comments