mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
Add Swedish locale.
This commit is contained in:
parent
60be39ed88
commit
362cf9dd03
@ -14,11 +14,11 @@ interface LOCALE_DATA {
|
||||
}
|
||||
|
||||
const LOCALES_MAP: Record<string, LOCALE_DATA> = {
|
||||
es: {
|
||||
name: 'Español',
|
||||
se: {
|
||||
name: 'Swedish',
|
||||
img: {
|
||||
filename: 'flag-es-co.svg',
|
||||
alt: 'Bandera Colombiana',
|
||||
filename: 'flag-se.svg',
|
||||
alt: 'svensk flagga',
|
||||
},
|
||||
},
|
||||
'en-US': {
|
||||
|
@ -14,7 +14,7 @@ const isVendure = provider === 'vendure'
|
||||
module.exports = withCommerceConfig({
|
||||
commerce,
|
||||
i18n: {
|
||||
locales: ['en-US'],
|
||||
locales: ['en-US', 'se'],
|
||||
defaultLocale: 'en-US',
|
||||
},
|
||||
rewrites() {
|
||||
|
5
public/flag-se.svg
Normal file
5
public/flag-se.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 16 10">
|
||||
<rect width="16" height="10" fill="#006aa7"/>
|
||||
<rect width="2" height="10" x="5" fill="#fecc00"/>
|
||||
<rect width="16" height="2" y="4" fill="#fecc00"/>
|
||||
</svg>
|
After Width: | Height: | Size: 286 B |
Loading…
x
Reference in New Issue
Block a user