From 86ff44066613a88174933bc26e1a7dc156c98aff Mon Sep 17 00:00:00 2001 From: Nishant Singh <57475999+Rjnishant530@users.noreply.github.com> Date: Sat, 11 Jan 2025 00:48:57 +0530 Subject: [PATCH] refactor: add more languages to language type from rssboard.org/rss-language-codes (#18072) * fix(types): add logo and icon properties and made language property Language type * add rss-language-codes --------- Co-authored-by: rjnishant530 --- lib/types.ts | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/lib/types.ts b/lib/types.ts index a805da2dcbc3b0..56f99ce77a417e 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -91,7 +91,112 @@ export type Data = { ttl?: number; }; -type Language = 'en' | 'de' | 'ja' | 'zh-CN' | 'zh-TW' | 'zh-HK' | 'pt' | 'fr' | 'ar-DZ' | 'ar-SA' | 'ar-MA' | 'ar-IQ' | 'ar-KW' | 'ar-TN' | 'fi' | 'it' | 'ru' | 'es' | 'ko' | 'tr' | 'ne' | 'other'; +type Language = + | 'af' + | 'sq' + | 'eu' + | 'be' + | 'bg' + | 'ca' + | 'zh-CN' + | 'zh-TW' + | 'zh-HK' + | 'hr' + | 'cs' + | 'ar-DZ' + | 'ar-SA' + | 'ar-MA' + | 'ar-IQ' + | 'ar-KW' + | 'ar-TN' + | 'da' + | 'nl' + | 'nl-be' + | 'nl-nl' + | 'en' + | 'en-au' + | 'en-bz' + | 'en-ca' + | 'en-ie' + | 'en-jm' + | 'en-nz' + | 'en-ph' + | 'en-za' + | 'en-tt' + | 'en-gb' + | 'en-us' + | 'en-zw' + | 'et' + | 'fo' + | 'fi' + | 'fr' + | 'fr-be' + | 'fr-ca' + | 'fr-fr' + | 'fr-lu' + | 'fr-mc' + | 'fr-ch' + | 'gl' + | 'gd' + | 'de' + | 'de-at' + | 'de-de' + | 'de-li' + | 'de-lu' + | 'de-ch' + | 'el' + | 'haw' + | 'hu' + | 'is' + | 'in' + | 'ga' + | 'it' + | 'it-it' + | 'it-ch' + | 'ja' + | 'ko' + | 'mk' + | 'no' + | 'pl' + | 'pt' + | 'pt-br' + | 'pt-pt' + | 'ro' + | 'ro-mo' + | 'ro-ro' + | 'ru' + | 'ru-mo' + | 'ru-ru' + | 'sr' + | 'sk' + | 'sl' + | 'es' + | 'es-ar' + | 'es-bo' + | 'es-cl' + | 'es-co' + | 'es-cr' + | 'es-do' + | 'es-ec' + | 'es-sv' + | 'es-gt' + | 'es-hn' + | 'es-mx' + | 'es-ni' + | 'es-pa' + | 'es-py' + | 'es-pe' + | 'es-pr' + | 'es-es' + | 'es-uy' + | 'es-ve' + | 'sv' + | 'sv-fi' + | 'sv-se' + | 'tr' + | 'uk' + | 'ne' + | 'other'; // namespace interface NamespaceItem {