forked from abner/for-legacy-web
Start work on fluent categories.
Fix Locale loading when syncing invalid lang.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { IntlContext, translate } from "preact-i18n";
|
||||
import { useContext } from "preact/hooks";
|
||||
|
||||
import { Dictionary } from "../context/Locale";
|
||||
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
interface Fields {
|
||||
@@ -12,18 +14,6 @@ interface Props {
|
||||
fields: Fields;
|
||||
}
|
||||
|
||||
export interface Dictionary {
|
||||
dayjs: {
|
||||
defaults: {
|
||||
twelvehour: "yes" | "no";
|
||||
separator: string;
|
||||
date: "traditional" | "simplified" | "ISO8601";
|
||||
};
|
||||
timeFormat: string;
|
||||
};
|
||||
[key: string]: Object | string;
|
||||
}
|
||||
|
||||
export interface IntlType {
|
||||
intl: {
|
||||
dictionary: Dictionary;
|
||||
|
||||
Reference in New Issue
Block a user