ajout multilingue
This commit is contained in:
parent
6e27c1c53b
commit
86c9ad0b93
12 changed files with 53 additions and 6 deletions
|
|
@ -6,8 +6,10 @@ fields:
|
||||||
label: Nom
|
label: Nom
|
||||||
type: text
|
type: text
|
||||||
required: true
|
required: true
|
||||||
|
translate: false
|
||||||
role:
|
role:
|
||||||
label: Poste
|
label: Poste
|
||||||
type: text
|
type: text
|
||||||
required: true
|
required: true
|
||||||
|
translate: false
|
||||||
help: "Ex: CEO & Co-Founder"
|
help: "Ex: CEO & Co-Founder"
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ tabs:
|
||||||
layout: cards
|
layout: cards
|
||||||
size: medium
|
size: medium
|
||||||
template: member
|
template: member
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 2/3
|
ratio: 2/3
|
||||||
cover: true
|
cover: true
|
||||||
|
|
|
||||||
|
|
@ -74,12 +74,14 @@ tabs:
|
||||||
type: date
|
type: date
|
||||||
required: true
|
required: true
|
||||||
default: today
|
default: today
|
||||||
|
translate: false
|
||||||
cover:
|
cover:
|
||||||
label: Image de couverture
|
label: Image de couverture
|
||||||
type: files
|
type: files
|
||||||
layout: cards
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 16/9
|
ratio: 16/9
|
||||||
uploads:
|
uploads:
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,17 @@ tabs:
|
||||||
fields:
|
fields:
|
||||||
intro:
|
intro:
|
||||||
type: writer
|
type: writer
|
||||||
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
nodes:
|
nodes:
|
||||||
- heading
|
- heading
|
||||||
headings:
|
headings:
|
||||||
- 1
|
- 1
|
||||||
buttons: false
|
|
||||||
help: Section de texte centrée.
|
help: Section de texte centrée.
|
||||||
articles_list:
|
articles_list:
|
||||||
label: Articles
|
label: Articles
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ tabs:
|
||||||
content:
|
content:
|
||||||
type: fields
|
type: fields
|
||||||
fields:
|
fields:
|
||||||
title:
|
writer:
|
||||||
label: Titre
|
label: Titre
|
||||||
type: writer
|
type: writer
|
||||||
nodes: false
|
nodes: false
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ columns:
|
||||||
size: small
|
size: small
|
||||||
max: 1
|
max: 1
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 1/1
|
||||||
uploads:
|
uploads:
|
||||||
|
|
@ -56,6 +57,7 @@ columns:
|
||||||
layout: cards
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 16/9
|
ratio: 16/9
|
||||||
cover: true
|
cover: true
|
||||||
|
|
@ -66,6 +68,7 @@ columns:
|
||||||
label: Badge
|
label: Badge
|
||||||
type: tags
|
type: tags
|
||||||
max: 1
|
max: 1
|
||||||
|
translate: false
|
||||||
options:
|
options:
|
||||||
- NEW
|
- NEW
|
||||||
- Populaire
|
- Populaire
|
||||||
|
|
@ -80,6 +83,7 @@ columns:
|
||||||
type: select
|
type: select
|
||||||
required: true
|
required: true
|
||||||
default: available
|
default: available
|
||||||
|
translate: false
|
||||||
options:
|
options:
|
||||||
available: Disponible
|
available: Disponible
|
||||||
coming_soon: Bientôt disponible
|
coming_soon: Bientôt disponible
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ tabs:
|
||||||
layout: cards
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
accept: video/*
|
accept: video/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 16/9
|
ratio: 16/9
|
||||||
cover: true
|
cover: true
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ columns:
|
||||||
size: medium
|
size: medium
|
||||||
max: 1
|
max: 1
|
||||||
accept: video/*
|
accept: video/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 2/3
|
ratio: 2/3
|
||||||
cover: true
|
cover: true
|
||||||
|
|
@ -70,6 +71,7 @@ columns:
|
||||||
max: 1
|
max: 1
|
||||||
size: small
|
size: small
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 1/1
|
||||||
uploads:
|
uploads:
|
||||||
|
|
@ -90,6 +92,7 @@ columns:
|
||||||
layout: cards
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
translate: false
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 1/1
|
||||||
uploads:
|
uploads:
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,12 @@ columns:
|
||||||
label: Email
|
label: Email
|
||||||
type: email
|
type: email
|
||||||
width: 1/3
|
width: 1/3
|
||||||
|
translate: false
|
||||||
contact_phone:
|
contact_phone:
|
||||||
label: Téléphone
|
label: Téléphone
|
||||||
type: tel
|
type: tel
|
||||||
width: 1/3
|
width: 1/3
|
||||||
|
translate: false
|
||||||
contact_address:
|
contact_address:
|
||||||
label: Adresse
|
label: Adresse
|
||||||
type: writer
|
type: writer
|
||||||
|
|
@ -32,6 +34,7 @@ columns:
|
||||||
social_links:
|
social_links:
|
||||||
label: Liens réseaux sociaux
|
label: Liens réseaux sociaux
|
||||||
type: structure
|
type: structure
|
||||||
|
translate: false
|
||||||
fields:
|
fields:
|
||||||
label:
|
label:
|
||||||
label: Nom
|
label: Nom
|
||||||
|
|
@ -59,4 +62,5 @@ columns:
|
||||||
label: Mentions légales (PDF)
|
label: Mentions légales (PDF)
|
||||||
type: files
|
type: files
|
||||||
max: 1
|
max: 1
|
||||||
accept: application/pdf
|
accept: application/pdf
|
||||||
|
translate: false
|
||||||
|
|
@ -53,7 +53,7 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
// Langues
|
// Langues
|
||||||
'languages' => false, // Mettre true si multilingue activé
|
'languages' => true,
|
||||||
|
|
||||||
// Thumbs
|
// Thumbs
|
||||||
'thumbs' => [
|
'thumbs' => [
|
||||||
|
|
@ -65,5 +65,5 @@ return [
|
||||||
'1200w' => ['width' => 1200]
|
'1200w' => ['width' => 1200]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
12
site/languages/en.php
Normal file
12
site/languages/en.php
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'code' => 'en',
|
||||||
|
'default' => false,
|
||||||
|
'direction' => 'ltr',
|
||||||
|
'locale' => [
|
||||||
|
'LC_ALL' => 'en_US.utf8'
|
||||||
|
],
|
||||||
|
'name' => 'English',
|
||||||
|
'url' => 'en'
|
||||||
|
];
|
||||||
12
site/languages/fr.php
Normal file
12
site/languages/fr.php
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'code' => 'fr',
|
||||||
|
'default' => true,
|
||||||
|
'direction' => 'ltr',
|
||||||
|
'locale' => [
|
||||||
|
'LC_ALL' => 'fr_FR.utf8'
|
||||||
|
],
|
||||||
|
'name' => 'Français',
|
||||||
|
'url' => '/'
|
||||||
|
];
|
||||||
Loading…
Add table
Add a link
Reference in a new issue