-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from dev-family/ADM-62
ADM 62 + ADM-103
- Loading branch information
Showing
18 changed files
with
180 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import { enUs as enUsPopconfirmLocale } from '../../ui/Popconfirm/locale/enUS' | ||
import { PopconfirmLocaleType } from '../../ui/Popconfirm/interfaces' | ||
|
||
export const enUs = { | ||
export type DataTableType = { | ||
title: string | ||
} & PopconfirmLocaleType | ||
|
||
export const enUs: DataTableType = { | ||
title: 'Are you sure you want to delete?', | ||
...enUsPopconfirmLocale, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { CRUDLocale } from './crud/interfaces' | ||
import { defaultLocale as CRUDEn } from './crud/locale/LocaleContext' | ||
import { enUs as tableEn, DataTableType } from './dataTable/locale' | ||
import { FiltersLocale } from './filters/interfaces' | ||
import { enUS as filtersLocaleEn } from './filters/locale/enUS' | ||
import { Locale as FormLocale } from './form/interfaces' | ||
import { enUS as formLocaleEn } from './form/locale/enUS' | ||
import datePickerLocaleEn from './ui/DatePicker/locale/en_US' | ||
import { PickerLocale } from './ui/DatePicker/generatePicker/interfaces' | ||
import { enUs as LayoutLocaleEn } from './ui/Layout/locale/enUs' | ||
import { LayoutLocale } from './ui/Layout/interfaces' | ||
import { enUs as paginationLocaleEn } from './ui/Pagination/locales/enUS' | ||
import { PaginationLocale } from './ui/Pagination/interfaces' | ||
import { enUs as PopconfirmLocaleEn } from './ui/Popconfirm/locale' | ||
import { PopconfirmLocaleType } from './ui/Popconfirm/interfaces' | ||
import { enUs as selectLocaleEn } from './ui/Select/locales/enUS' | ||
import { SelectLocale } from './ui/Select/interfaces' | ||
import { enUS as uploadLocaleEn } from './ui/Upload/locales/enUS' | ||
import { UploadLocale } from './ui/Upload/interfaces' | ||
|
||
type AdmiralLocale = { | ||
CRUD: CRUDLocale | ||
table: DataTableType | ||
filters: FiltersLocale | ||
form: FormLocale | ||
ui: { | ||
datePicker: PickerLocale | ||
layout: LayoutLocale | ||
pagination: PaginationLocale | ||
popconfirm: PopconfirmLocaleType | ||
select: SelectLocale | ||
upload: UploadLocale | ||
} | ||
} | ||
|
||
export type AdmiralLocales = { | ||
en: AdmiralLocale | ||
ru: {} | ||
} | ||
|
||
export const admiralLocales: AdmiralLocales = { | ||
en: { | ||
CRUD: CRUDEn, | ||
table: tableEn, | ||
filters: filtersLocaleEn, | ||
form: formLocaleEn, | ||
ui: { | ||
datePicker: datePickerLocaleEn, | ||
layout: LayoutLocaleEn, | ||
pagination: paginationLocaleEn, | ||
popconfirm: PopconfirmLocaleEn, | ||
select: selectLocaleEn, | ||
upload: uploadLocaleEn, | ||
}, | ||
}, | ||
ru: {}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export const enUs = { | ||
import { PopconfirmLocaleType } from '../interfaces' | ||
|
||
export const enUs: PopconfirmLocaleType = { | ||
cancelTitle: 'Cancel', | ||
confirmTitle: 'Confirm', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export declare const enUs: { | ||
cancelTitle: string; | ||
confirmTitle: string; | ||
import { PopconfirmLocaleType } from '../../ui/Popconfirm/interfaces'; | ||
export declare type DataTableType = { | ||
title: string; | ||
}; | ||
} & PopconfirmLocaleType; | ||
export declare const enUs: DataTableType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { CRUDLocale } from './crud/interfaces'; | ||
import { DataTableType } from './dataTable/locale'; | ||
import { FiltersLocale } from './filters/interfaces'; | ||
import { Locale as FormLocale } from './form/interfaces'; | ||
import { PickerLocale } from './ui/DatePicker/generatePicker/interfaces'; | ||
import { LayoutLocale } from './ui/Layout/interfaces'; | ||
import { PaginationLocale } from './ui/Pagination/interfaces'; | ||
import { PopconfirmLocaleType } from './ui/Popconfirm/interfaces'; | ||
import { SelectLocale } from './ui/Select/interfaces'; | ||
import { UploadLocale } from './ui/Upload/interfaces'; | ||
declare type AdmiralLocale = { | ||
CRUD: CRUDLocale; | ||
table: DataTableType; | ||
filters: FiltersLocale; | ||
form: FormLocale; | ||
ui: { | ||
datePicker: PickerLocale; | ||
layout: LayoutLocale; | ||
pagination: PaginationLocale; | ||
popconfirm: PopconfirmLocaleType; | ||
select: SelectLocale; | ||
upload: UploadLocale; | ||
}; | ||
}; | ||
export declare type AdmiralLocales = { | ||
en: AdmiralLocale; | ||
ru: {}; | ||
}; | ||
export declare const admiralLocales: AdmiralLocales; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
export declare const enUs: { | ||
cancelTitle: string; | ||
confirmTitle: string; | ||
}; | ||
import { PopconfirmLocaleType } from '../interfaces'; | ||
export declare const enUs: PopconfirmLocaleType; |