mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: fix type for country flags and hover titles (#4709)
* chore: fix type for country flags * add text for Canada, fix Australia flag * add flag texts * fix text keys * update changeset * Add lock file * Add Austria
This commit is contained in:
parent
da6d8e5f38
commit
5a77414eb6
6 changed files with 1390 additions and 479 deletions
6
.changeset/dirty-islands-push.md
Normal file
6
.changeset/dirty-islands-push.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@verdaccio/ui-components': patch
|
||||
'@verdaccio/ui-theme': patch
|
||||
---
|
||||
|
||||
chore: fix type for country flags
|
|
@ -32,7 +32,7 @@
|
|||
"@verdaccio/ui-components": "workspace:3.0.0-next-7.8",
|
||||
"babel-loader": "8.3.0",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"country-flag-icons": "1.5.9",
|
||||
"country-flag-icons": "1.5.13",
|
||||
"css-loader": "6.9.1",
|
||||
"dayjs": "1.11.10",
|
||||
"dompurify": "3.0.8",
|
||||
|
|
|
@ -181,7 +181,9 @@
|
|||
},
|
||||
"flag": {
|
||||
"austria": "Austria",
|
||||
"australia": "Australia",
|
||||
"brazil": "Brazil",
|
||||
"canada": "Canada",
|
||||
"spain": "Spain",
|
||||
"nicaragua": "Nicaragua",
|
||||
"india": "India",
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
import Flags from 'country-flag-icons/react/3x2';
|
||||
import React from 'react';
|
||||
|
||||
export const DEFAULT_LANGUAGE = 'en-US';
|
||||
|
||||
export type LanguageConfiguration = {
|
||||
lng: string;
|
||||
menuKey: string;
|
||||
icon: React.ReactElement;
|
||||
icon: Flags.FlagComponent;
|
||||
};
|
||||
|
||||
export const listLanguages: LanguageConfiguration[] = [
|
||||
|
|
|
@ -27,31 +27,34 @@ const Footer = () => {
|
|||
<StyledEarth />
|
||||
<Flags>
|
||||
<Icon>
|
||||
<FlagsIcon.ES />
|
||||
<FlagsIcon.ES title={t('flag.spain')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.NI />
|
||||
<FlagsIcon.NI title={t('flag.nicaragua')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.IN />
|
||||
<FlagsIcon.IN title={t('flag.india')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.BR />
|
||||
<FlagsIcon.BR title={t('flag.brazil')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.CN />
|
||||
<FlagsIcon.CN title={t('flag.china')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.AU />
|
||||
<FlagsIcon.AU title={t('flag.australia')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.DE />
|
||||
<FlagsIcon.DE title={t('flag.germany')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.TW />
|
||||
<FlagsIcon.TW title={t('flag.taiwan')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.CA />
|
||||
<FlagsIcon.AT title={t('flag.austria')} />
|
||||
</Icon>
|
||||
<Icon>
|
||||
<FlagsIcon.CA title={t('flag.canada')} />
|
||||
</Icon>
|
||||
</Flags>
|
||||
</ToolTip>
|
||||
|
|
1835
pnpm-lock.yaml
1835
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue