Hi,
I’m working on a bilingual website, I built my blueprints to create en manages my pages in french and in english.
I add 'languages' => true
to my config.php
file as the guide says. It’s look like this :
<?php
return [
'environment' => 'local',
'schnti.cachebuster.active' => false,
'debug' => true,
'languages' => true,
];
I’ve created a folder languages
with my fr.php
and en.php
:
<?php
return [
'code' => 'fr',
'default' => true,
'direction' => 'ltr',
'locale' => 'fr_FR.utf-8',
'name' => 'Français',
'url' => '/',
];
<?php
return [
'code' => 'en',
'default' => false,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'en_US'
],
'name' => 'English',
'translations' => [
],
];
I write my site panel this way to change the label
of my fields regarding the choosen languages :
tabs:
settings:
label:
fr: Paramètres
en: settings
icon: settings
columns :
- width: 1/2
fields:
maintenance:
label: Maintenance
type: toggle
text:
- "on"
- "off"
siteSettings:
label: SEO
type: headline
author:
label:
fr: Auteur
en: Author
type: text
description:
label: Description
type: textarea
keywords:
label:
fr: Mots clés
en: Keywords
type: tags
favicon:
label: favicon
type: files
max: 1
multiple: false
But I choose my language (French or english), the fields label doesn’t change.
It’s a problem because I’ve got select fields to choose category for my pages and I want to register the category in french and in english. But with this problem I only have one language possible.
I’ve tried to solve it by deleting all my content and media folders, i still got this problem.