Skip to content

Commit 0c92f9d

Browse files
feat: production-ready packages (#13)
* feat: add old cli code * feat: add old cli demo dir * feat: upd old demo translations * feat: add changeset
1 parent 4b2e872 commit 0c92f9d

File tree

32 files changed

+1097
-3
lines changed

32 files changed

+1097
-3
lines changed

.changeset/fifty-candles-admire.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"replexica": minor
3+
"@replexica/compiler": minor
4+
"@replexica/react": minor
5+
---
6+
7+
production-ready release of replexica CLI, compiler, and react runtime components

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"scripts": {
44
"prepare": "husky",
55
"build": "turbo build",
6-
"test": "turbo test"
6+
"test": "turbo test",
7+
"new": "changeset",
8+
"new:empty": "changeset --empty"
79
},
810
"devDependencies": {
911
"@commitlint/cli": "^19.2.1",

packages/cli/.replexica/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 1
2+
3+
languages:
4+
source: en
5+
target:
6+
- es
7+
- fr
8+
9+
projects:
10+
- name: demo-json
11+
type: json
12+
dictionary: demo/json/[lang].json
13+
- name: demo-xcode
14+
type: xcode
15+
dictionary: demo/xcode/Localizable.xcstrings
16+
- name: demo-yaml
17+
type: yaml
18+
dictionary: demo/yaml/[lang].yml
19+
- name: demo-yaml-root-key
20+
type: yaml-root-key
21+
dictionary: demo/yaml-root-key/[lang].yml
22+
- name: demo-markdown
23+
type: markdown
24+
dictionary: demo/markdown/[lang].md

packages/cli/.replexica/hash.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# DO NOT MODIFY THIS FILE MANUALLY
2+
# This file is auto-generated by Replexica. Please keep it in your version control system.
3+
version: 1
4+
demo-json:
5+
home/title%2Fmain: 0112d07d03ae9f53f38d27c89f04dc0516a9fa5857e4ef7abc02e498255ab773
6+
home/description%2Fdev: 305ea3018a50aff752a42cb3d6646ef8117773c77d38d3123e1224abb2258d7f
7+
demo-xcode:
8+
hello-world: bbca77170621e018f9b8d17c850d2c7efe3cf9998cf741edf8e7dffbaeeb160e
9+
items.count%2Fmy/one: 9f18ee07889bbb7e808968e7dd45214c842921c37b9a2cc52309c5eceac340af
10+
items.count%2Fmy/other: d798260585aa4d8d018535a8e921ecaf51cae43a1341918a94c358de682dfa29
11+
items.count%2Fmy/zero: 6c351c116cc7feeaf5724426f891c890b4f7d9cb8baab5f2ec1d6c512cc016b6
12+
demo-yaml:
13+
home/title%2Fmain: 0112d07d03ae9f53f38d27c89f04dc0516a9fa5857e4ef7abc02e498255ab773
14+
home/description%2Fdev: 305ea3018a50aff752a42cb3d6646ef8117773c77d38d3123e1224abb2258d7f
15+
demo-yaml-root-key:
16+
home/title%2Fmain: 0112d07d03ae9f53f38d27c89f04dc0516a9fa5857e4ef7abc02e498255ab773
17+
home/description%2Fdev: 305ea3018a50aff752a42cb3d6646ef8117773c77d38d3123e1224abb2258d7f
18+
demo-markdown:
19+
"": 0465e5fdcfe136b556b153e17d8cd67bd84a489371c03744508523fa5848b424

packages/cli/demo/json/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"home": {
3+
"title/main": "Replexica",
4+
"description/dev": "Replexica is an AI-powered localization-as-a-service platform for modern SaaS."
5+
}
6+
}

packages/cli/demo/json/es.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"home": {
3+
"title/main": "Replexica",
4+
"description/dev": "Replexica es una plataforma de localización como servicio potenciada por IA para SaaS modernos."
5+
}
6+
}

packages/cli/demo/json/fr.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"home": {
3+
"title/main": "Replexica",
4+
"description/dev": "Replexica est une plateforme de localisation en tant que service, alimentée par l'IA, destinée aux SaaS modernes."
5+
}
6+
}

packages/cli/demo/markdown/en.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# stringyfy
2+
3+
## Description
4+
5+
`stringyfy` is a simple npm library that provides a set of utility functions to manipulate and transform strings in JavaScript. It's lightweight, easy to use, and has no dependencies.
6+
7+
## Installation
8+
9+
To install `stringyfy`, use the following command:
10+
11+
```bash
12+
npm install stringyfy
13+
```
14+
15+
## Usage
16+
17+
Here's a simple example of how to use `stringyfy`:
18+
19+
```javascript
20+
const stringyfy = require('stringyfy');
21+
22+
let str = "Hello, World!";
23+
24+
let result = stringyfy.reverse(str);
25+
26+
console.log(result); // Outputs: "!dlroW ,olleH"
27+
```
28+
29+
## API
30+
31+
### `reverse(str)`
32+
33+
Reverses the given string.
34+
35+
### `capitalize(str)`
36+
37+
Capitalizes the first letter of the given string.
38+
39+
### `lowercase(str)`
40+
41+
Converts all the characters in the given string to lowercase.
42+
43+
### `uppercase(str)`
44+
45+
Converts all the characters in the given string to uppercase.
46+
47+
## Contributing
48+
49+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
50+
51+
## License
52+
53+
MIT

packages/cli/demo/markdown/es.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# stringyfy
2+
3+
## Descripción
4+
5+
`stringyfy` es una biblioteca npm sencilla que ofrece un conjunto de funciones de utilidad para manipular y transformar cadenas en JavaScript. Es ligera, fácil de usar y no tiene dependencias.
6+
7+
## Instalación
8+
9+
Para instalar `stringyfy`, utiliza el siguiente comando:
10+
11+
```bash
12+
npm install stringyfy
13+
```
14+
15+
## Uso
16+
17+
Aquí tienes un ejemplo simple de cómo usar `stringyfy`:
18+
19+
```javascript
20+
const stringyfy = require('stringyfy');
21+
22+
let str = "Hola, Mundo!";
23+
24+
let resultado = stringyfy.reverse(str);
25+
26+
console.log(resultado); // Muestra: "!odnuM ,aloH"
27+
```
28+
29+
## API
30+
31+
### `reverse(str)`
32+
33+
Invierte la cadena dada.
34+
35+
### `capitalize(str)`
36+
37+
Capitaliza la primera letra de la cadena dada.
38+
39+
### `lowercase(str)`
40+
41+
Convierte todos los caracteres de la cadena dada a minúsculas.
42+
43+
### `uppercase(str)`
44+
45+
Convierte todos los caracteres de la cadena dada a mayúsculas.
46+
47+
## Contribuciones
48+
49+
Las solicitudes de extracción son bienvenidas. Para cambios importantes, por favor abre un problema primero para discutir lo que te gustaría cambiar.
50+
51+
## Licencia
52+
53+
MIT

packages/cli/demo/markdown/fr.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# stringyfy
2+
3+
## Description
4+
5+
`stringyfy` est une bibliothèque npm simple offrant une série de fonctions utilitaires pour manipuler et transformer des chaînes de caractères en JavaScript. Elle est légère, facile à utiliser et ne dépend d'aucune autre bibliothèque.
6+
7+
## Installation
8+
9+
Pour installer `stringyfy`, utilisez la commande suivante :
10+
11+
```bash
12+
npm install stringyfy
13+
```
14+
15+
## Utilisation
16+
17+
Voici un exemple simple d'utilisation de `stringyfy` :
18+
19+
```javascript
20+
const stringyfy = require('stringyfy');
21+
22+
let str = "Bonjour, le monde !";
23+
24+
let result = stringyfy.reverse(str);
25+
26+
console.log(result); // Affiche : "! ednom el ,ruojnoB"
27+
```
28+
29+
## API
30+
31+
### `reverse(str)`
32+
33+
Inverse la chaîne de caractères donnée.
34+
35+
### `capitalize(str)`
36+
37+
Met en majuscule la première lettre de la chaîne de caractères donnée.
38+
39+
### `lowercase(str)`
40+
41+
Convertit tous les caractères de la chaîne de caractères donnée en minuscules.
42+
43+
### `uppercase(str)`
44+
45+
Convertit tous les caractères de la chaîne de caractères donnée en majuscules.
46+
47+
## Contribution
48+
49+
Les pull requests sont les bienvenues. Pour les changements importants, veuillez d'abord ouvrir un problème pour discuter de ce que vous souhaitez modifier.
50+
51+
## Licence
52+
53+
MIT

0 commit comments

Comments
 (0)