docs: translate INSTALL.md to French and add npm registry step

- Translate all installation instructions from English to French
- Add new step to configure the npm registry with a `.npmrc` file
- Renumber steps accordingly (now 6 steps instead of 5)
This commit is contained in:
2026-04-12 14:37:33 -04:00
parent c33383adf7
commit 54c4ad058d
+19 -11
View File
@@ -1,22 +1,30 @@
# Installation # Installation
## 1. Install the package ## 1. Configurer le registre npm
Créer un fichier `.npmrc` à la racine du projet avec le contenu suivant :
```
@hykocx:registry=https://git.hyko.cx/api/packages/hykocx/npm/
```
## 2. Installer le package
```bash ```bash
npm install @hykocx/zen npm install @hykocx/zen
``` ```
## 2. Install the styles ## 3. Installer les styles
Add the following line to your `globals.css` file: Ajouter la ligne suivante dans le fichier `globals.css` :
```css ```css
@import '@hykocx/zen/styles/zen.css'; @import '@hykocx/zen/styles/zen.css';
``` ```
## 3. Add ZenProvider to your root layout ## 4. Ajouter ZenProvider au layout racine
Wrap your application with the `ZenProvider` in your root layout to enable toast notifications globally: Entourer l'application avec `ZenProvider` dans le layout racine pour activer les notifications toast globalement :
```javascript ```javascript
// app/layout.js // app/layout.js
@@ -40,21 +48,21 @@ export default function RootLayout({ children }) {
} }
``` ```
## 4. Configure the environment variables ## 5. Configurer les variables d'environnement
Check the [`.env.example`](.env.example) file for the required environment variables to add to your `.env` file. Consulter le fichier [`.env.example`](.env.example) pour les variables d'environnement à ajouter dans le fichier `.env`.
## 5. Initialize the database ## 6. Initialiser la base de données
```bash ```bash
npx zen-db init npx zen-db init
``` ```
# Setup # Configuration
## Quick Setup ## Configuration rapide
You can create all required files with a single command: On peut créer tous les fichiers requis avec une seule commande :
```bash ```bash
npx zen-setup init npx zen-setup init