Skip to content

Commit

Permalink
refactor: add more languages to language type from rssboard.org/rss-l…
Browse files Browse the repository at this point in the history
…anguage-codes (#18072)

* fix(types): add logo and icon properties and made language property Language type

* add rss-language-codes

---------

Co-authored-by: rjnishant530 <singhnisant530@gmail.com>
  • Loading branch information
Rjnishant530 and rjnishant530 authored Jan 10, 2025
1 parent 62c31b2 commit 86ff440
Showing 1 changed file with 106 additions and 1 deletion.
107 changes: 106 additions & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 86ff440

Please sign in to comment.