Skip to content

Commit 4e94058

Browse files
feat: lockfile support (#99)
* feat: udp compiler bucket type name * feat: new i18n command draft * feat: add xcode + markdown support * chore: remove dev comment * refactor: refactoring * feat: add demo to cli * feat: add markdown splitting * refactor: remove console.log * feat: remove old implementation files * refactor: refactoring * fix: markdown output format * feat: improved xcode bucketPath parsing * fix: xcode merger * feat: add demo results * refactor: refactoring * chore: add changeset
1 parent 208e173 commit 4e94058

41 files changed

Lines changed: 946 additions & 661 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/sweet-ties-hunt.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@replexica/spec": minor
3+
"@replexica/cli": minor
4+
"replexica": minor
5+
---
6+
7+
Added support for i18n lockfiles to improve AI localization performance.

package/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+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"home": {
33
"title/main": "Replexica",
4-
"description/dev": "Replexica es una plataforma de localización como servicio potenciada por IA para SaaS modernos."
4+
"description/dev": "Replexica es una plataforma de localización como servicio impulsada por IA para SaaS modernos."
55
}
66
}

package/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

package/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 proporciona un conjunto de funciones utilitarias 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`, usa el siguiente comando:
10+
11+
```bash
12+
npm install stringyfy
13+
```
14+
15+
## Uso
16+
17+
Aquí tienes un ejemplo sencillo de cómo usar `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); // Muestra: "!dlroW ,olleH"
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+
## Contribuir
48+
49+
Las solicitudes de extracción son bienvenidas. Para cambios importantes, abre primero un issue para discutir lo que te gustaría cambiar.
50+
51+
## Licencia
52+
53+
MIT
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"sourceLanguage": "en",
3+
"strings": {
4+
"hello-world": {
5+
"comment": "This is a translation entry for the hello word message",
6+
"extractionState": "manual",
7+
"localizations": {
8+
"en": {
9+
"stringUnit": {
10+
"state": "translated",
11+
"value": "Hello world!!"
12+
}
13+
},
14+
"es": {
15+
"stringUnit": {
16+
"state": "translated",
17+
"value": "¡Hola mundo!"
18+
}
19+
}
20+
}
21+
},
22+
"items.count/my": {
23+
"extractionState": "manual",
24+
"localizations": {
25+
"en": {
26+
"variations": {
27+
"plural": {
28+
"one": {
29+
"stringUnit": {
30+
"state": "translated",
31+
"value": "%lld item"
32+
}
33+
},
34+
"other": {
35+
"stringUnit": {
36+
"state": "translated",
37+
"value": "%lld items"
38+
}
39+
},
40+
"zero": {
41+
"stringUnit": {
42+
"state": "translated",
43+
"value": "No items"
44+
}
45+
}
46+
}
47+
}
48+
},
49+
"es": {
50+
"variations": {
51+
"plural": {
52+
"one": {
53+
"stringUnit": {
54+
"state": "translated",
55+
"value": "%lld artículo"
56+
}
57+
},
58+
"other": {
59+
"stringUnit": {
60+
"state": "translated",
61+
"value": "%lld artículos"
62+
}
63+
},
64+
"zero": {
65+
"stringUnit": {
66+
"state": "translated",
67+
"value": "No hay artículos"
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
},
76+
"version": "1.0"
77+
}

package/demo/yaml-root-key/en.yml

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

package/demo/yaml-root-key/es.yml

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

package/demo/yaml/en.yml

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

package/demo/yaml/es.yml

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

0 commit comments

Comments
 (0)