🤖 Merge PR #62545 [iobroker] Add ukrainian language to types by @Apollon77

This commit is contained in:
Ingo Fischer
2022-10-04 13:04:00 +02:00
committed by GitHub
parent fabcae996c
commit e397057887
2 changed files with 2 additions and 1 deletions

View File

@@ -755,6 +755,7 @@ const adapterObject: ioBroker.AdapterObject = {
pt: 'foo',
ru: 'foo',
en: 'foo',
uk: 'foo',
'zh-cn': 'foo',
},
version: '1.2.3',

View File

@@ -130,7 +130,7 @@ declare global {
T extends ObjectIDs.AdapterScoped ? AdapterScopedObject :
Read extends "read" ? ioBroker.Object : AnyObject;
type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'zh-cn';
type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'uk' | 'zh-cn';
type StringOrTranslated = string | {
// The "en" property is required when an object is used for the languages
[lang in Languages as lang extends "en" ? lang : never]: string;