@agendize/az-i18n 0.0.1

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 ADDED
@@ -0,0 +1,25 @@
1
+ # Agendize i18n Module
2
+
3
+ ## Description
4
+
5
+ i18n module for Agendize Component
6
+
7
+ ## Install
8
+
9
+ To install on your project
10
+
11
+ ```sh
12
+ yarn add @agendize/az-i18n
13
+ # or
14
+ npm install @agendize/az-i18n
15
+ ```
16
+
17
+ **Global**
18
+
19
+ ***Components***
20
+
21
+
22
+ ```js
23
+
24
+ ```
25
+
@@ -0,0 +1,3 @@
1
+ export declare type Locale = 'en' | 'fr';
2
+ export declare const messages: Record<Locale, {}>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,oBAAY,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;AAChC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,CAAyB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import en from './langs/en.json';
2
+ import fr from './langs/fr.json';
3
+ export var messages = { 'en': en, 'fr': fr };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAChC,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAGhC,MAAM,CAAC,IAAM,QAAQ,GAAuB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,EAAE,EAAE,CAAA"}
File without changes
@@ -0,0 +1,29 @@
1
+ {
2
+ "agendize": {
3
+ "main": {
4
+ "skip": "Passer au contenu"
5
+ },
6
+ "menu": {
7
+ "logout": {
8
+ "title": "Se déconnecter",
9
+ "aria-label": "Se déconnecter",
10
+ "popover-title": "Déconnexion",
11
+ "popover-description": "Au plaisir de vous revoir \uD83D\uDE09"
12
+ }
13
+ },
14
+ "topBar": {
15
+ "avatar": { "aria-label": "Avatar de l'utilisateur" }
16
+ },
17
+ "router-meta": {
18
+ "title": "Agendize",
19
+ "calendar": {
20
+ "title": "Calendrier",
21
+ "description": "Gérer vos rendez-vous et planifier votre activité"
22
+ },
23
+ "settings": {
24
+ "title": "Paramétrage",
25
+ "description": "Paramétrer votre Agendize en fonction de vos préférences"
26
+ }
27
+ }
28
+ }
29
+ }
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@agendize/az-i18n",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "description": "Agendize i18n",
6
+ "keywords": [
7
+ "agendize",
8
+ "i18n"
9
+ ],
10
+ "homepage": "https://github.com/agendize/az-i18n",
11
+ "bugs": {
12
+ "url": "https://github.com/agendize/az-i18n/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/agendize/az-i18n.git"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "author": "Agendize",
20
+ "main": "src/index.ts",
21
+ "types": "dist/index.d.ts",
22
+ "files": [
23
+ "dist/"
24
+ ],
25
+ "dependencies": {
26
+ "typescript": "^4.7.4"
27
+ },
28
+ "devDependencies": {},
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "publish-lib": "npm run build && npm publish --access=public ",
32
+ "publish-beta": "npm run build && npm publish --access=public --tag beta",
33
+ "publish-dryrun": "npm run build && npm publish --access=public --dry-run"
34
+ }
35
+ }
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ import en from './langs/en.json'
2
+ import fr from './langs/fr.json'
3
+
4
+ export type Locale = 'en' | 'fr'
5
+ export const messages: Record<Locale, {}> = { 'en': en, 'fr':fr }