diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 140cf2e..36cb4c9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -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 \ No newline at end of file + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 089cadc..9540969 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -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 \ No newline at end of file + required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1b0cd12..6f73adf 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,14 +1,15 @@ - ## 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? @@ -27,4 +28,3 @@ Issue Number: N/A ## Other information - diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 7d39253..49334ed 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -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 diff --git a/.typesafe-i18n.json b/.typesafe-i18n.json index 84c0154..80e0b78 100644 --- a/.typesafe-i18n.json +++ b/.typesafe-i18n.json @@ -1,5 +1,5 @@ { - "adapter": "svelte", - "outputPath": "./src/lib/i18n/", - "$schema": "https://unpkg.com/typesafe-i18n@5.24.1/schema/typesafe-i18n.json" -} \ No newline at end of file + "adapter": "svelte", + "outputPath": "./src/lib/i18n/", + "$schema": "https://unpkg.com/typesafe-i18n@5.24.1/schema/typesafe-i18n.json" +} diff --git a/prisma/ERD.md b/prisma/ERD.md index 4776163..1fa5695 100644 --- a/prisma/ERD.md +++ b/prisma/ERD.md @@ -6,7 +6,7 @@ erDiagram Dark Dark Light Light } - + Visiblity { @@ -14,47 +14,47 @@ Light Light 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" @@ -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" diff --git a/src/lib/i18n/i18n-types.ts b/src/lib/i18n/i18n-types.ts index a54fe41..9958760 100644 --- a/src/lib/i18n/i18n-types.ts +++ b/src/lib/i18n/i18n-types.ts @@ -12,6 +12,7 @@ export type Locales = | 'es' | 'it' | 'ru' + | 'tr' | 'uk' export type Translation = RootTranslation diff --git a/src/lib/i18n/i18n-util.async.ts b/src/lib/i18n/i18n-util.async.ts index 2da5cac..84a685b 100644 --- a/src/lib/i18n/i18n-util.async.ts +++ b/src/lib/i18n/i18n-util.async.ts @@ -12,6 +12,7 @@ const localeTranslationLoaders = { es: () => import('./es'), it: () => import('./it'), ru: () => import('./ru'), + tr: () => import('./tr'), uk: () => import('./uk'), } diff --git a/src/lib/i18n/i18n-util.sync.ts b/src/lib/i18n/i18n-util.sync.ts index b7108f3..86e0db0 100644 --- a/src/lib/i18n/i18n-util.sync.ts +++ b/src/lib/i18n/i18n-util.sync.ts @@ -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 = { @@ -20,6 +21,7 @@ const localeTranslations = { es, it, ru, + tr, uk, } diff --git a/src/lib/i18n/i18n-util.ts b/src/lib/i18n/i18n-util.ts index 348b965..f85f532 100644 --- a/src/lib/i18n/i18n-util.ts +++ b/src/lib/i18n/i18n-util.ts @@ -17,6 +17,7 @@ export const locales: Locales[] = [ 'es', 'it', 'ru', + 'tr', 'uk' ] diff --git a/src/lib/i18n/tr/index.ts b/src/lib/i18n/tr/index.ts new file mode 100644 index 0000000..7faf27d --- /dev/null +++ b/src/lib/i18n/tr/index.ts @@ -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; diff --git a/src/lib/i18n/tr/listd.json b/src/lib/i18n/tr/listd.json new file mode 100644 index 0000000..56290fa --- /dev/null +++ b/src/lib/i18n/tr/listd.json @@ -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" +} diff --git a/src/lib/i18n/tr/onboarding.json b/src/lib/i18n/tr/onboarding.json new file mode 100644 index 0000000..1fdc6f2 --- /dev/null +++ b/src/lib/i18n/tr/onboarding.json @@ -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!" + } +}