Skip to content

Commit e895746

Browse files
feat: preserve newlines, whitespaces while formatting (#433)
* feat: preserve newlines, whitespaces while formatting * fix: fix broken imports * refactor: refactored newline loader
1 parent c7d4d84 commit e895746

23 files changed

Lines changed: 330 additions & 125 deletions

.changeset/fresh-kings-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": minor
3+
---
4+
5+
preserve newlines, whitespaces while formatting

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pnpm-lock.yaml
22
.changeset/
3+
packages/cli/demo/
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"version": "1.0",
3-
"sourceLanguage": "en",
4-
"strings": {
5-
"complex_format": {
6-
"localizations": {
7-
"en": {
8-
"stringUnit": {
9-
"state": "translated",
10-
"value": "User %1$@ has %2$lld points and $%3$.2f balance"
2+
"sourceLanguage" : "en",
3+
"strings" : {
4+
"complex_format" : {
5+
"extractionState" : "manual",
6+
"localizations" : {
7+
"ar" : {
8+
"stringUnit" : {
9+
"state" : "translated",
10+
"value" : "المستخدم %1$@ لديه %2$lld نقطة ورصيد $%3$.2f"
1111
}
1212
},
13-
"ar": {
14-
"stringUnit": {
15-
"state": "translated",
16-
"value": "المستخدم %1$@ لديه %2$lld نقطة ورصيد $%3$.2f"
13+
"en" : {
14+
"stringUnit" : {
15+
"state" : "translated",
16+
"value" : "User %1$@ has %2$lld points and $%3$.2f balance"
1717
}
1818
}
19-
},
20-
"extractionState": "manual"
19+
}
2120
}
22-
}
23-
}
21+
},
22+
"version" : "1.0"
23+
}

0 commit comments

Comments
 (0)