fix commands not being translated
This commit is contained in:
parent
7d6a02235d
commit
1ae0e14e42
4 changed files with 23 additions and 17 deletions
|
@ -5,7 +5,8 @@ import nl from '~/i18n/nl-NL.json';
|
|||
import { makePersisted } from '@solid-primitives/storage';
|
||||
|
||||
type RawDictionary = typeof en;
|
||||
type Dictionary = Flatten<RawDictionary>;
|
||||
export type Dictionary = Flatten<RawDictionary>;
|
||||
export type DictionaryKey = keyof Dictionary;
|
||||
export type Locale = 'en-GB' | 'nl-NL';
|
||||
|
||||
const dictionaries = {
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
export type { Dictionary, DictionaryKey } from './context';
|
||||
export { I18nProvider, useI18n } from './context';
|
||||
export { LocalePicker } from './picker';
|
Loading…
Add table
Add a link
Reference in a new issue