System Information
- Strapi Version: 4.15.4
- Operating System: Linux Ubuntu 22.04
- Database: MySQL
- Node Version: v18.18.2
- NPM Version: 9.8.1
- Yarn Version: 1.22.10
Hi guys,
I’m new to Strapi and would like to set up different languages on the Strapi dashboard.
Basically, on the authentication page and the profile page, I want to be able to set the language I want (FR, EN, RU).
Currently, the only language available is English.
And it’s impossible to add my other languages.
I’ve found several topics discussing this problem and I’ve followed most of the solutions, but nothing works…
So far, my approach has been to :
- in ./src/admin: add the /extensions folder and create an app.js file there
- add the code as explained in the documentation
- yarn build && yarn develop
Nothing worked…
I’ve also tried adding other parameters (like changing the favicon, for example) but they don’t seem to be taken into account…
Here’s my current code in .src/admin/extensions/app.js :
import favicon from "./extensions/logo-sm.png";
export default {
config: {
head: {
favicon: favicon,
},
locales: ["fr", "en", "ru"],
translations: {
fr: {
"Auth.form.welcome.title": "Bonjour !",
"content-type-builder.plugin.name": "Constructeur de Type-Contenu",
"content-manager.plugin.name": "Manager le Contenu",
},
en: {
"Auth.form.welcome.title": "Welcome!",
"content-type-builder.plugin.name": "Content-Type Builder",
"content-manager.plugin.name": "Content Manager",
},
ru: {
"Auth.form.welcome.title": "Добре дошли!",
"content-type-builder.plugin.name": "Content-Type Builder",
"content-manager.plugin.name": "Content Manager",
}
},
tutorials: false,
theme: {
colors: {
primary100: "#E8EAF2", // button select color
primary200: "#E8EAF2", // backgournd color
primary500: "#ac73e6",
primary600: "#050E31", // text color
primary700: "#050E31", // border color
danger700: "#b72b1a"
}
}
},
bootstrap() {},
};
and the architecture of the project
Thank you in advance for all your help!
PS : Very sorry if my english is bad ^^"