Skip to content

Commit a4e1b19

Browse files
authored
Merge pull request #9 from helpwave/version-0.3.0
version 0.2.2
2 parents c317bea + c4006e3 commit a4e1b19

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.3.0] - 2025-11-23
8+
## [0.2.2] - 2025-11-24
9+
10+
### Changed
11+
- Updated the values parameter type of TranslationEntries to be more specific as a `Record<string, unkown>` rather than a `object`
12+
13+
## [0.2.1] - 2025-11-23
914

1015
### Added
1116
- Added error logging and catching

examples/translations/translations.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// AUTO-GENERATED. DO NOT EDIT.
22
/* eslint-disable @stylistic/quote-props */
33
/* eslint-disable no-useless-escape */
4-
/* eslint-disable @typescript-eslint/no-unused-vars */
5-
import type { Translation } from '@helpwave/internationalization'
6-
import { TranslationGen } from '@helpwave/internationalization'
4+
5+
import type { Translation } from 'src/index'
6+
import { TranslationGen } from 'src/index'
77

88
export const exampleTranslationLocales = ['de-DE', 'en-US', 'fr-FR'] as const
99

@@ -214,4 +214,3 @@ export const exampleTranslation: Translation<ExampleTranslationLocales, Partial<
214214
'yes': `Oui`
215215
}
216216
}
217-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "git+https://github.com/helpwave/internationlization.git"
1111
},
1212
"license": "MPL-2.0",
13-
"version": "0.2.1",
13+
"version": "0.2.2",
1414
"type": "module",
1515
"files": [
1616
"dist"

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TranslationEntry = string | ((values: object) => string)
1+
export type TranslationEntry = string | ((values: Record<string, unknown>) => string)
22

33
export type TranslationEntries = Record<string, TranslationEntry>
44

0 commit comments

Comments
 (0)