Skip to content

Commit b9cc8f0

Browse files
added missing language 'uk' to types (#2427)
* added missing language 'uk' to types - closes #2426 * fix type test --------- Co-authored-by: Bluefox <dogafox@gmail.com>
1 parent f40b693 commit b9cc8f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/types-dev/objects.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ declare global {
145145
? ioBroker.Object
146146
: AnyObject;
147147

148-
type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'zh-cn';
148+
type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'uk' | 'zh-cn';
149149
type Translated = { en: string } & { [lang in Languages]?: string };
150150

151-
/** For objects we require the English language to be present */
151+
/** For objects, we require the English language to be present */
152152
type StringOrTranslated = string | Translated;
153153

154154
type CommonType = 'number' | 'string' | 'boolean' | 'array' | 'object' | 'mixed' | 'file';

packages/types-public/index.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ const _adapterObject: ioBroker.AdapterObject = {
779779
pt: 'foo',
780780
ru: 'foo',
781781
en: 'foo',
782+
uk: 'foo',
782783
'zh-cn': 'foo'
783784
},
784785
version: '1.2.3',

0 commit comments

Comments
 (0)