Skip to content

Commit e19f432

Browse files
chore(plugin-redirects): add Swedish translation (#15213)
### What? Adds Swedish translation to the redirects plugin. ### Why? While all other plugins had automatically generated Swedish translations, the redirects plugin did not.
1 parent da12eed commit e19f432

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/plugin-redirects/src/translations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import { en } from './languages/en.js'
44
import { es } from './languages/es.js'
55
import { fr } from './languages/fr.js'
66
import { ja } from './languages/ja.js'
7+
import { sv } from './languages/sv.js'
78

89
export const translations = {
910
en,
1011
es,
1112
fr,
1213
ja,
14+
sv
1315
}
1416

1517
export type RedirectsTranslations = GenericTranslationsObject
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { GenericTranslationsObject } from '@payloadcms/translations'
2+
3+
export const sv: GenericTranslationsObject = {
4+
$schema: '../translation-schema.json',
5+
'plugin-redirects': {
6+
customUrl: 'URL',
7+
documentToRedirect: 'Dokument',
8+
fromUrl: 'Från',
9+
internalLink: 'Intern länk',
10+
redirectType: 'Typ',
11+
toUrlType: 'Till',
12+
},
13+
}

0 commit comments

Comments
 (0)