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

i18n Turkish language support 🇹🇷 🇹🇷 🇹🇷 #12

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/CodingGarden/listd/blob/main/CODE-OF-CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/CodingGarden/listd/blob/main/CODE-OF-CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
required: true
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

<!--- Please provide a general summary of your changes in the title above -->

## What type of Pull Request is this?

**Delete all options except for the one that applies**

- Bug fix
- Feature
- Code style update (formatting, renaming)
- Refactoring (no functional changes, no API changes)
- Build related changes
- Other (please describe):
- Other (please describe):

## What is the current behavior?

Expand All @@ -27,4 +28,3 @@ Issue Number: N/A
## Other information

<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->

42 changes: 21 additions & 21 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Run Checks
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm ci
- run: cp .env.example .env
- run: npx svelte-kit sync
- run: npm run typecheck
- run: npm run lint
- run: npx playwright install
- run: npm test
name: Run Checks
on:
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm ci
- run: cp .env.example .env
- run: npx svelte-kit sync
- run: npm run typecheck
- run: npm run lint
- run: npx playwright install
- run: npm test
8 changes: 4 additions & 4 deletions .typesafe-i18n.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"adapter": "svelte",
"outputPath": "./src/lib/i18n/",
"$schema": "https://unpkg.com/[email protected]/schema/typesafe-i18n.json"
}
"adapter": "svelte",
"outputPath": "./src/lib/i18n/",
"$schema": "https://unpkg.com/[email protected]/schema/typesafe-i18n.json"
}
94 changes: 47 additions & 47 deletions prisma/ERD.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,55 @@ erDiagram
Dark Dark
Light Light
}



Visiblity {
Public Public
Unlisted Unlisted
Private Private
}



ListItemType {
YouTubeChannel YouTubeChannel
}

User {
String id PK
DateTime createdAt
DateTime updatedAt
String id PK
DateTime createdAt
DateTime updatedAt
String name "nullable"
String email "nullable"
DateTime emailVerified "nullable"
String image "nullable"
}


UserSettings {
String id PK
Boolean onboarded
ColorScheme colorScheme
String id PK
Boolean onboarded
ColorScheme colorScheme
}


Locale {
String id
String languageCode
String id
String languageCode
String countryCode "nullable"
String script "nullable"
String formalName
String nativeName
String formalName
String nativeName
String commonName "nullable"
}


Account {
String id PK
String tokenType
String provider
String providerAccountId
String id PK
String tokenType
String provider
String providerAccountId
String refreshToken "nullable"
String accessToken "nullable"
Int expiresIn "nullable"
Expand All @@ -63,50 +63,50 @@ Private Private
String idToken "nullable"
String sessionState "nullable"
}


Session {
String id PK
String sessionToken
DateTime expires
String id PK
String sessionToken
DateTime expires
}


VerificationToken {
String identifier
String token
DateTime expires
String identifier
String token
DateTime expires
}


List {
String id PK
String name
String id PK
String name
String description "nullable"
Visiblity visibility
DateTime createdAt
DateTime updatedAt
Visiblity visibility
DateTime createdAt
DateTime updatedAt
}


ListItem {
Int id PK
String name
Int id PK
String name
String description "nullable"
DateTime createdAt
DateTime updatedAt
DateTime createdAt
DateTime updatedAt
}


ListItemMeta {
String id PK
String name
String originId
ListItemType type
DateTime createdAt
DateTime updatedAt
String id PK
String name
String originId
ListItemType type
DateTime createdAt
DateTime updatedAt
}

UserSettings o|--|| ColorScheme : "enum:colorScheme"
UserSettings o|--|| User : "user"
UserSettings o{--|| Locale : "locale"
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type Locales =
| 'es'
| 'it'
| 'ru'
| 'tr'
| 'uk'

export type Translation = RootTranslation
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const localeTranslationLoaders = {
es: () => import('./es'),
it: () => import('./it'),
ru: () => import('./ru'),
tr: () => import('./tr'),
uk: () => import('./uk'),
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import en from './en'
import es from './es'
import it from './it'
import ru from './ru'
import tr from './tr'
import uk from './uk'

const localeTranslations = {
Expand All @@ -20,6 +21,7 @@ const localeTranslations = {
es,
it,
ru,
tr,
uk,
}

Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const locales: Locales[] = [
'es',
'it',
'ru',
'tr',
'uk'
]

Expand Down
12 changes: 12 additions & 0 deletions src/lib/i18n/tr/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Translation } from '../i18n-types';
import en from '../en';
import listd from './listd.json';
import onboarding from './onboarding.json';

const tr: Translation = {
...(en as Translation),
...listd,
onboarding,
};

export default tr;
5 changes: 5 additions & 0 deletions src/lib/i18n/tr/listd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tagline": "Üst düzey YouTube deneyimi sunar. İster izlemek için yeni içerik arayın, isterseniz kendi yaptığınız listeyi arkadaşlarınızla paylaşın, uygulamamız size yardımcı olur.",
"signUp": "YouTube ile giriş yap",
"message": "Merhaba Dünya"
}
11 changes: 11 additions & 0 deletions src/lib/i18n/tr/onboarding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"labels": {
"username": "Kullanıcı Adı",
"uploadFile": "Dosya Seç"
},
"messages": {
"main": "Listd'e Hoş Geldin! Hadi profilini oluşturalım.",
"avatar": "Profil resminizi yükleyin.",
"final": "İşte bu kadar! Hadi başlayalım!"
}
}