Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions packages/qvac-lib-langdetect-text-cld2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2024-03-23

### Changed
- Replaced `iso-language-codes` dependency with `language-tags` for comprehensive language support
- The `code` field in API responses now returns ISO 639-1/2/3 codes (previously only ISO 639-1)
- Languages without ISO 639-1 codes now return their ISO 639-3 codes instead of 'und'
- Example: Hawaiian returns `{ code: 'haw', language: 'Hawaiian' }`

### Added
- Full support for ISO 639-3 language codes (e.g., `haw` for Hawaiian, `chr` for Cherokee, `yue` for Cantonese)
- Comprehensive support for Arabic dialect codes:
- Moroccan Arabic (`ary`), Egyptian Arabic (`arz`), Tunisian Arabic (`aeb`)
- Levantine Arabic (`apc`), Mesopotamian Arabic (`acm`), Sudanese Arabic (`apd`)
- Algerian Arabic (`arq`), Libyan Arabic (`ayl`), Najdi Arabic (`ars`)
- And many more regional Arabic variants
- Better handling of minority and regional languages that lack ISO 639-1 codes

### Fixed
- Improved language name resolution across all ISO 639 standards (639-1, 639-2, and 639-3)
- `getLangName()` now correctly handles ISO 639-3 codes

### Internal
- Simplified error handling by removing unnecessary try-catch blocks
- Cleaner code structure leveraging `language-tags` library capabilities
- Improved code mapping with better support for CLD2's output variations

## [0.2.0] - 2026-03-18

This release modernizes the package to use ES modules, improving compatibility with modern JavaScript environments and the Bare runtime. The package maintains full backward compatibility through careful handling of CommonJS dependencies.
Expand Down
29 changes: 27 additions & 2 deletions packages/qvac-lib-langdetect-text-cld2/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,33 @@ JavaScript Dependencies

--- apache-2.0 (Apache License 2.0) ---

bare-addon-resolve@1.10.0
https://github.com/holepunchto/bare-addon-resolve
bare-bundle@1.10.0
https://github.com/holepunchto/bare-bundle
bare-module@6.1.3
https://github.com/holepunchto/bare-module
bare-module-lexer@1.4.7
https://github.com/holepunchto/bare-module-lexer
bare-module-resolve@1.12.1
https://github.com/holepunchto/bare-module-resolve
bare-os@3.8.0
https://github.com/holepunchto/bare-os
bare-path@3.0.0
https://github.com/holepunchto/bare-path
bare-semver@1.0.2
https://github.com/holepunchto/bare-semver
bare-url@2.4.0
https://github.com/holepunchto/bare-url
cld@2.10.1
https://github.com/dachev/cld
require-addon@1.2.0
https://github.com/holepunchto/require-addon

--- cc0-1.0 (Creative Commons Zero 1.0) ---

language-subtag-registry@0.3.23
https://github.com/mattcg/language-subtag-registry

--- isc (ISC License) ---

Expand All @@ -40,8 +65,8 @@ JavaScript Dependencies
https://github.com/juliangruber/brace-expansion
concat-map@0.0.1
https://github.com/substack/node-concat-map
iso-language-codes@2.0.0
https://github.com/pubcore/iso-language-codes
language-tags@1.0.9
https://github.com/mattcg/language-tags
node-addon-api@8.6.0
https://github.com/nodejs/node-addon-api
path-is-absolute@1.0.1
Expand Down
4 changes: 2 additions & 2 deletions packages/qvac-lib-langdetect-text-cld2/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export interface Language {
code: string; // ISO 639-1 code
code: string; // ISO 639-1/2/3 code
language: string; // Language name
}

export interface LanguageProbability {
code: string; // ISO 639-1 code
code: string; // ISO 639-1/2/3 code
language: string; // Language name
probability: number; // Probability of the language being detected
}
Expand Down
Loading
Loading