Skip to content

Commit

Permalink
feat(type): i18nString
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 8, 2023
1 parent 06d04ad commit 1a77cd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/type/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ export type Locale = {
*/
direction: 'rtl' | 'ltr';
};

/**
* Multi language string
*
* {fa: 'سلام', en: 'hello'}
*/
export type i18nString = Record<Lowercase<string>, string>;

0 comments on commit 1a77cd1

Please sign in to comment.