@aparte/locale-fr 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # @aparte/locale-fr
2
2
 
3
3
  French locale for [aparté](https://github.com/apartejs/aparte). Core ships English
4
- (`DEFAULT_LOCALE`) out of the box — install this only to switch to French.
4
+ (`APARTE_DEFAULT_LOCALE`) out of the box — install this only to switch to French.
5
5
 
6
6
  ```bash
7
7
  npm install @aparte/locale-fr @aparte/core
8
8
  ```
9
9
 
10
10
  ```ts
11
- import { AparteConfig } from '@aparte/core';
11
+ import { aparteGlobalConfig } from '@aparte/core';
12
12
  import { fr } from '@aparte/locale-fr';
13
13
 
14
- AparteConfig.setLocale(fr);
14
+ aparteGlobalConfig.setLocale(fr);
15
15
  ```
16
16
 
17
17
  To toggle back and forth at runtime (e.g. a language switcher), use
@@ -19,12 +19,12 @@ To toggle back and forth at runtime (e.g. a language switcher), use
19
19
 
20
20
  ```ts
21
21
  function setLanguage(lang: 'fr' | 'en') {
22
- if (lang === 'fr') AparteConfig.setLocale(fr);
23
- else AparteConfig.resetLocale();
22
+ if (lang === 'fr') aparteGlobalConfig.setLocale(fr);
23
+ else aparteGlobalConfig.resetLocale();
24
24
  }
25
25
  ```
26
26
 
27
- `@aparte/core` is a **peer dependency**. See the [Localization guide](https://github.com/apartejs/aparte)
27
+ `@aparte/core` is a **peer dependency**. See the [Localization guide](https://apartejs.dev/guides/localization/)
28
28
  for the full `AparteLocale` surface.
29
29
 
30
30
  > ESM-only. Part of the aparté monorepo.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @aparte/locale-fr
3
3
  *
4
- * French translations for aparté. Core ships English (`DEFAULT_LOCALE`) by
5
- * default — pass this to `AparteConfig.setLocale(fr)` to switch.
4
+ * French translations for aparté. Core ships English (`APARTE_DEFAULT_LOCALE`) by
5
+ * default — pass this to `aparteGlobalConfig.setLocale(fr)` to switch.
6
6
  */
7
7
  import type { AparteLocale } from '@aparte/core';
8
8
  export declare const fr: AparteLocale;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,eAAO,MAAM,EAAE,EAAE,YAkChB,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,eAAO,MAAM,EAAE,EAAE,YA2ChB,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -5,6 +5,15 @@ const fr = {
5
5
  copied: "Copié !",
6
6
  retry: "Réessayer",
7
7
  thinking: "Réflexion en cours...",
8
+ elicitationOther: "Autre…",
9
+ elicitationOtherPlaceholder: "Écrivez votre réponse…",
10
+ elicitationOtherLabel: "Réponse libre",
11
+ submitButton: "Valider",
12
+ elicitationNext: "Suivant",
13
+ elicitationSkip: "Passer",
14
+ elicitationYes: "Oui",
15
+ elicitationNo: "Non",
16
+ elicitationAnswerLabel: "Votre réponse",
8
17
  typing: "Écrit...",
9
18
  error: "Erreur",
10
19
  running: "Exécution...",
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @aparte/locale-fr\n *\n * French translations for aparté. Core ships English (`DEFAULT_LOCALE`) by\n * default — pass this to `AparteConfig.setLocale(fr)` to switch.\n */\n\nimport type { AparteLocale } from '@aparte/core';\n\nexport const fr: AparteLocale = {\n inputPlaceholder: \"Écrivez un message...\",\n sendButton: \"Envoyer\",\n copy: \"Copier\",\n copied: \"Copié !\",\n retry: \"Réessayer\",\n thinking: \"Réflexion en cours...\",\n typing: \"Écrit...\",\n error: \"Erreur\",\n running: \"Exécution...\",\n run: \"Exécuter\",\n file: \"Fichier\",\n modelSelectorPlaceholder: \"Sélectionner un modèle...\",\n roleNameUser: \"Vous\",\n roleNameAssistant: \"Assistant\",\n yourMessage: \"Votre message\",\n assistantResponse: \"Réponse de l'assistant\",\n messageActions: \"Actions du message\",\n edit: \"Modifier le message\",\n editConfirm: \"Envoyer\",\n editCancel: \"Annuler\",\n feedbackPositive: \"Bonne réponse\",\n feedbackNegative: \"Mauvaise réponse\",\n previousResponse: \"Réponse précédente\",\n nextResponse: \"Réponse suivante\",\n approveTool: \"Approuver\",\n rejectTool: \"Rejeter\",\n tokensPerSecondLabel: \"tok/s\",\n messageInfo: \"Détails\",\n newChat: \"Nouvelle conversation\",\n deleteConversation: \"Supprimer la conversation\",\n archiveConversation: \"Archiver la conversation\",\n unarchiveConversation: \"Désarchiver la conversation\",\n direction: 'ltr'\n};\n\nexport default fr;\n"],"names":[],"mappings":"AASO,MAAM,KAAmB;AAAA,EAC5B,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,KAAK;AAAA,EACL,MAAM;AAAA,EACN,0BAA0B;AAAA,EAC1B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,WAAW;AACf;"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @aparte/locale-fr\n *\n * French translations for aparté. Core ships English (`APARTE_DEFAULT_LOCALE`) by\n * default — pass this to `aparteGlobalConfig.setLocale(fr)` to switch.\n */\n\nimport type { AparteLocale } from '@aparte/core';\n\nexport const fr: AparteLocale = {\n inputPlaceholder: \"Écrivez un message...\",\n sendButton: \"Envoyer\",\n copy: \"Copier\",\n copied: \"Copié !\",\n retry: \"Réessayer\",\n thinking: \"Réflexion en cours...\",\n elicitationOther: \"Autre…\",\n elicitationOtherPlaceholder: \"Écrivez votre réponse…\",\n elicitationOtherLabel: \"Réponse libre\",\n submitButton: \"Valider\",\n elicitationNext: \"Suivant\",\n elicitationSkip: \"Passer\",\n elicitationYes: \"Oui\",\n elicitationNo: \"Non\",\n elicitationAnswerLabel: \"Votre réponse\",\n typing: \"Écrit...\",\n error: \"Erreur\",\n running: \"Exécution...\",\n run: \"Exécuter\",\n file: \"Fichier\",\n modelSelectorPlaceholder: \"Sélectionner un modèle...\",\n roleNameUser: \"Vous\",\n roleNameAssistant: \"Assistant\",\n yourMessage: \"Votre message\",\n assistantResponse: \"Réponse de l'assistant\",\n messageActions: \"Actions du message\",\n edit: \"Modifier le message\",\n editConfirm: \"Envoyer\",\n editCancel: \"Annuler\",\n feedbackPositive: \"Bonne réponse\",\n feedbackNegative: \"Mauvaise réponse\",\n previousResponse: \"Réponse précédente\",\n nextResponse: \"Réponse suivante\",\n approveTool: \"Approuver\",\n rejectTool: \"Rejeter\",\n tokensPerSecondLabel: \"tok/s\",\n messageInfo: \"Détails\",\n newChat: \"Nouvelle conversation\",\n deleteConversation: \"Supprimer la conversation\",\n archiveConversation: \"Archiver la conversation\",\n unarchiveConversation: \"Désarchiver la conversation\",\n direction: 'ltr'\n};\n\nexport default fr;\n"],"names":[],"mappings":"AASO,MAAM,KAAmB;AAAA,EAC5B,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,6BAA6B;AAAA,EAC7B,uBAAuB;AAAA,EACvB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,KAAK;AAAA,EACL,MAAM;AAAA,EACN,0BAA0B;AAAA,EAC1B,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,WAAW;AACf;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aparte/locale-fr",
3
- "version": "0.7.1",
4
- "description": "French locale for aparté — pass to AparteConfig.setLocale() (core ships English by default).",
3
+ "version": "0.9.0",
4
+ "description": "French locale for aparté — pass to aparteGlobalConfig.setLocale() (core ships English by default).",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -24,13 +24,12 @@
24
24
  "node": ">=18"
25
25
  },
26
26
  "peerDependencies": {
27
- "@aparte/core": ">=0.5.0-alpha.0 <1.0.0"
27
+ "@aparte/core": ">=0.7.0 <1.0.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.4.0",
31
31
  "vite": "^6.0.0",
32
- "vite-plugin-dts": "^4.5.4",
33
- "@aparte/core": "0.7.1"
32
+ "@aparte/core": "0.9.0"
34
33
  },
35
34
  "keywords": [
36
35
  "aparte",