Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 1ad9890

Browse files
committed
i18n support
1 parent a242832 commit 1ad9890

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

admin/app/blocks/blocks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ export const blocks = {
3939
label_singular: 'Bloc de contenu',
4040
widget: 'list',
4141
collapsed: false,
42-
types: selectedBlocks
42+
types: selectedBlocks,
43+
i18n: true
4344
};

admin/app/data/config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const config = {
1010
label: 'Config',
1111

1212
editor: { preview: false },
13-
13+
14+
i18n: {
15+
structure: 'single_file'
16+
},
1417
files: [
1518

1619
{
@@ -44,7 +47,7 @@ const config = {
4447
name: 'social',
4548
label: 'Menu réseaux sociaux',
4649
file: 'data/menu/social.yml',
47-
i18n: true,
50+
i18n: 'duplicate',
4851
fields: [
4952
links
5053
]
@@ -83,13 +86,14 @@ const config = {
8386
name: 'analytics',
8487
label: 'Scripts analytics',
8588
file: 'config/production/config.yaml',
86-
i18n: true,
89+
i18n: 'duplicate',
8790
fields: [
8891
{
8992
name: 'googleAnalytics',
9093
label: 'Google Analytics (G4)',
9194
widget: 'string',
92-
hint: 'G-MEASUREMENT_ID'
95+
hint: 'G-MEASUREMENT_ID',
96+
i18n: 'duplicate'
9397
}
9498
]
9599
}

0 commit comments

Comments
 (0)