Skip to content

Commit 94ab265

Browse files
feat: i18n bucket type agnostic configuration support (#73)
* feat(cli): add replexica init command * chore: moved classic demo dir to /demo * chore: upd lockfile * feat(cli): add `projects` to i18n.json * feat(spec): added `@replexica/spec` package * chore(spec): migrate compiler + cli to use spec * refactor(spec): refactored i18n.json format * refactor: upd * chore: upd i18n.json * feat: add translator fn implementation * feat: add replexica bucket processor * feat: implement replexica bucket processor * refactor: refactoring * refactor: refactoring * feat: add markdown bucket processor * feat: add bucket processors * refactor: remove old cli code * chore: cleanup * feat(spec): add add config / formats to @replexica/spec * feat(cli): add `replexica config` cli command * feat(cli): fallback to using default config instead of throwing an error * feat(compiler): use config merging in compiler * feat: migrate to the new compiler / config * docs(spec): changeset for `@replexica/spec`
1 parent 0b719c4 commit 94ab265

70 files changed

Lines changed: 960 additions & 1081 deletions

Some content is hidden

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

.changeset/happy-squids-watch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@replexica/spec": minor
3+
---
4+
5+
intro a `@replexica/spec` package containing common definitions, constants, schemas, and types

demo/classic/i18n.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": 1,
3+
"locale": {
4+
"source": "en",
5+
"targets": [
6+
"es"
7+
]
8+
},
9+
"buckets": {
10+
"": "replexica",
11+
"json/[locale].json": "json",
12+
"xcode/Localizable.xcstrings": "xcode",
13+
"yaml/[locale].yml": "yaml",
14+
"yaml-root-key/[locale].yml": "yaml-root-key",
15+
"markdown/[locale].md": "markdown"
16+
}
17+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo/classic/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@replexica/demo/classic",
3+
"private": true,
4+
"version": "0.0.0",
5+
"keywords": [],
6+
"author": "",
7+
"license": "ISC",
8+
"dependencies": {
9+
"replexica": "workspace:*"
10+
}
11+
}
File renamed without changes.

0 commit comments

Comments
 (0)