Skip to content

Commit

Permalink
feature: Export locales module
Browse files Browse the repository at this point in the history
  • Loading branch information
vbudovski committed Dec 22, 2024
1 parent e29a16b commit 007260e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions paseri-lib/deno.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@vbudovski/paseri",
"license": "MIT",
"version": "0.1.0",
"exports": "./src/index.ts",
"version": "0.1.1",
"exports": {
".": "./src/index.ts",
"./locales": "./src/locales/index.ts"
},
"imports": {
"@badrap/valita": "jsr:@badrap/valita",
"@biomejs/biome": "npm:@biomejs/biome",
Expand Down
2 changes: 1 addition & 1 deletion paseri-lib/src/locales/en-GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const en_GB = {
invalid_value: 'Invalid value. Expected {expected}.',
unrecognized_key: 'Unrecognised key.',
missing_value: 'Missing value.',
} satisfies Translations;
} satisfies Translations as Translations;

export { en_GB };
3 changes: 2 additions & 1 deletion paseri-lib/src/locales/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { Translations } from '../message.ts';
import { en_GB } from './en-GB.ts';

const en_US = {
...en_GB,
unrecognized_key: 'Unrecognized key.',
};
} satisfies Translations as Translations;

export { en_US };

0 comments on commit 007260e

Please sign in to comment.