Skip to content

Commit

Permalink
fix: add Italian (it), Dutch (nl), Polish (pl), Portuguese (pt), Russ…
Browse files Browse the repository at this point in the history
…ian (ru) and Chinese (zh) to possible glossary language codes
  • Loading branch information
daniel-jones-dev committed Aug 3, 2023
1 parent 042031f commit 45032d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* CI: silence npm audit warnings in non-production dependencies due to
currently-unresolvable [vulnerability in semver <7.5.2](https://github.com/npm/node-semver/pull/564).
* Increase axios dependency to >=1.2.2, due to [bug in axios v1.2.1](https://github.com/axios/axios/issues/5346).
* Added supported glossary languages: Italian (it), Dutch (nl), Polish (pl),
Portuguese (pt), Russian (ru) and Chinese (zh). The corresponding glossary
language code TypeScript types are extended.

Note: older library versions also support the new glossary language pairs,
this update only adds new types.


## [1.10.2] - 2023-06-02
Expand Down
13 changes: 12 additions & 1 deletion src/types.ts
Expand Up @@ -220,7 +220,18 @@ export type NonRegionalLanguageCode = CommonLanguageCode | 'en' | 'pt';
* Note: although the language code type definitions are case-sensitive, this package and the DeepL
* API accept case-insensitive language codes.
*/
export type SourceGlossaryLanguageCode = 'de' | 'en' | 'es' | 'fr' | 'ja';
export type SourceGlossaryLanguageCode =
| 'de'
| 'en'
| 'es'
| 'fr'
| 'it'
| 'ja'
| 'nl'
| 'pl'
| 'pt'
| 'ru'
| 'zh';

/**
* Language codes that may be used as a target language for glossaries.
Expand Down

0 comments on commit 45032d5

Please sign in to comment.