Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appwrite console internationalization : Typesafe-i18n #459

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b8a2be4
getting started with i18n
goswamianshuman May 22, 2023
f9145de
made suggested changes
goswamianshuman May 23, 2023
5d33e68
updated library to i18next
goswamianshuman May 23, 2023
6da4889
removed unwanted packages
goswamianshuman May 23, 2023
78eda23
initiate typesafe-i18n
goswamianshuman Jun 3, 2023
6910551
typesafe-i18n attempt
goswamianshuman Jun 4, 2023
4be78df
updated package.json
goswamianshuman Jun 4, 2023
70f993c
finializing code for review
goswamianshuman Jun 4, 2023
14c3b54
updated languageSelector
goswamianshuman Jun 4, 2023
49c05b5
channged texts from js objects to json
goswamianshuman Jun 6, 2023
b019a14
renwed i18n and selector
goswamianshuman Jun 9, 2023
a672c2b
updated alias
goswamianshuman Jun 9, 2023
47004fb
update language selector
goswamianshuman Jun 10, 2023
6ac1324
updates in typesafe-i18n
goswamianshuman Jun 12, 2023
64866de
added typesafe to build
goswamianshuman Jun 14, 2023
61d4e3e
typesafe with build
goswamianshuman Jun 14, 2023
bc4e690
processed i18n files from src/lib/i18n to src/i18n
goswamianshuman Jun 14, 2023
713eebb
testing new json key structure
goswamianshuman Jun 22, 2023
2d51bcd
updated previous data (english only)
goswamianshuman Jun 26, 2023
3b94c69
updated other lang files
goswamianshuman Jun 28, 2023
e5340db
updated console/accounts (eng only)
goswamianshuman Jul 10, 2023
3493d6b
updated console/onboarding (eng only)
goswamianshuman Jul 10, 2023
2f78338
basic changes
goswamianshuman Jul 10, 2023
bec72ed
updated console/organization (eng only)
goswamianshuman Jul 12, 2023
4ad2d1f
basic updates
goswamianshuman Jul 12, 2023
d22bdd8
updating previous structure (eng only)
goswamianshuman Jul 15, 2023
2d311d2
modified data in console/project/auth (eng lang only)
goswamianshuman Jul 17, 2023
6280ba1
modified console/project/auth
goswamianshuman Jul 19, 2023
fd4872f
modified console/project/auth (eng lang only)
goswamianshuman Jul 20, 2023
f315071
modification in console/project/auth completed and databases started
goswamianshuman Jul 22, 2023
bc0b906
completed modification of data in console/project/databases
goswamianshuman Jul 27, 2023
9a82260
modification completed in settings
Jul 29, 2023
cbe3410
completed modification in console / overview
Jul 30, 2023
3bfa2c2
completed modification in console/functions
Jul 30, 2023
e0e4d20
modification complete in console/storage
Jul 30, 2023
b31f147
minor updates
Jul 31, 2023
20f2d13
updated en.json and de.json
Jul 31, 2023
f7619cc
modified english and italian json
Aug 1, 2023
44232bb
usage updated
Aug 1, 2023
0327063
updated collection
Aug 1, 2023
567743f
updated sidebar
Aug 1, 2023
b4286cf
modified components, layout and mock's data
Aug 4, 2023
94f561d
modified platform and its elements
Aug 6, 2023
2b665a4
minor updates
Aug 6, 2023
60f4683
updated keys dates and mainOauth
Aug 6, 2023
756882e
updated notifications
Aug 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ node_modules
node_modules/
dist/
.vercel

4 changes: 4 additions & 0 deletions .typesafe-i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"adapter": "svelte",
"$schema": "https://unpkg.com/[email protected]/schema/typesafe-i18n.json"
}
2 changes: 2 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { fileURLToPath } from 'url';
import { build, loadEnv } from 'vite';
import { execSync } from 'child_process';

import kleur from 'kleur';

const { bold, yellow } = kleur;
Expand Down
662 changes: 605 additions & 57 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"node": ">=16"
},
"scripts": {
"dev": "vite dev",
"build": "node build.js",
"dev": "npm-run-all --parallel dev:*",
"dev:vite": "vite dev",
"dev:i18n": "typesafe-i18n",
"build": "node build.js --parallel dev:i18n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure parallel is gonna work here. It needs to happen before build.js

Copy link
Author

@goswamianshuman goswamianshuman Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to run prebuild function but it was also not helpful, the command gets stuck there and the build stops.

"preview": "vite preview",
"sync": "svelte-kit sync",
"check": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings --threshold warning",
Expand All @@ -28,9 +30,11 @@
"dotenv": "^16.0.3",
"echarts": "^5.4.1",
"logrocket": "^3.0.1",
"npm-run-all": "^4.1.5",
"pretty-bytes": "^6.1.0",
"prismjs": "^1.29.0",
"tippy.js": "^6.3.7",
"typesafe-i18n": "^5.24.3",
"web-vitals": "^3.1.1"
},
"devDependencies": {
Expand Down
Loading