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
|
||||
type: text
|
||||
required: true
|
||||
translate: false
|
||||
role:
|
||||
label: Poste
|
||||
type: text
|
||||
required: true
|
||||
translate: false
|
||||
help: "Ex: CEO & Co-Founder"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ tabs:
|
|||
layout: cards
|
||||
size: medium
|
||||
template: member
|
||||
translate: false
|
||||
image:
|
||||
ratio: 2/3
|
||||
cover: true
|
||||
|
|
|
|||
|
|
@ -74,12 +74,14 @@ tabs:
|
|||
type: date
|
||||
required: true
|
||||
default: today
|
||||
translate: false
|
||||
cover:
|
||||
label: Image de couverture
|
||||
type: files
|
||||
layout: cards
|
||||
max: 1
|
||||
accept: image/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 16/9
|
||||
uploads:
|
||||
|
|
|
|||
|
|
@ -12,11 +12,17 @@ tabs:
|
|||
fields:
|
||||
intro:
|
||||
type: writer
|
||||
marks:
|
||||
- bold
|
||||
- italic
|
||||
- underline
|
||||
- strike
|
||||
- green
|
||||
- pixel
|
||||
nodes:
|
||||
- heading
|
||||
headings:
|
||||
- 1
|
||||
buttons: false
|
||||
help: Section de texte centrée.
|
||||
articles_list:
|
||||
label: Articles
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ tabs:
|
|||
content:
|
||||
type: fields
|
||||
fields:
|
||||
title:
|
||||
writer:
|
||||
label: Titre
|
||||
type: writer
|
||||
nodes: false
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ columns:
|
|||
size: small
|
||||
max: 1
|
||||
accept: image/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 1/1
|
||||
uploads:
|
||||
|
|
@ -56,6 +57,7 @@ columns:
|
|||
layout: cards
|
||||
max: 1
|
||||
accept: image/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 16/9
|
||||
cover: true
|
||||
|
|
@ -66,6 +68,7 @@ columns:
|
|||
label: Badge
|
||||
type: tags
|
||||
max: 1
|
||||
translate: false
|
||||
options:
|
||||
- NEW
|
||||
- Populaire
|
||||
|
|
@ -80,6 +83,7 @@ columns:
|
|||
type: select
|
||||
required: true
|
||||
default: available
|
||||
translate: false
|
||||
options:
|
||||
available: Disponible
|
||||
coming_soon: Bientôt disponible
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ tabs:
|
|||
layout: cards
|
||||
max: 1
|
||||
accept: video/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 16/9
|
||||
cover: true
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ columns:
|
|||
size: medium
|
||||
max: 1
|
||||
accept: video/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 2/3
|
||||
cover: true
|
||||
|
|
@ -70,6 +71,7 @@ columns:
|
|||
max: 1
|
||||
size: small
|
||||
accept: image/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 1/1
|
||||
uploads:
|
||||
|
|
@ -90,6 +92,7 @@ columns:
|
|||
layout: cards
|
||||
max: 1
|
||||
accept: image/*
|
||||
translate: false
|
||||
image:
|
||||
ratio: 1/1
|
||||
uploads:
|
||||
|
|
|
|||
|
|
@ -18,10 +18,12 @@ columns:
|
|||
label: Email
|
||||
type: email
|
||||
width: 1/3
|
||||
translate: false
|
||||
contact_phone:
|
||||
label: Téléphone
|
||||
type: tel
|
||||
width: 1/3
|
||||
translate: false
|
||||
contact_address:
|
||||
label: Adresse
|
||||
type: writer
|
||||
|
|
@ -32,6 +34,7 @@ columns:
|
|||
social_links:
|
||||
label: Liens réseaux sociaux
|
||||
type: structure
|
||||
translate: false
|
||||
fields:
|
||||
label:
|
||||
label: Nom
|
||||
|
|
@ -60,3 +63,4 @@ columns:
|
|||
type: files
|
||||
max: 1
|
||||
accept: application/pdf
|
||||
translate: false
|
||||
|
|
@ -53,7 +53,7 @@ return [
|
|||
],
|
||||
|
||||
// Langues
|
||||
'languages' => false, // Mettre true si multilingue activé
|
||||
'languages' => true,
|
||||
|
||||
// Thumbs
|
||||
'thumbs' => [
|
||||
|
|
@ -65,5 +65,5 @@ return [
|
|||
'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