Skip to content

Commit

Permalink
cleanup useless i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jan 7, 2025
1 parent 03b3507 commit bb7bc6d
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 150 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ This project uses [pnpm](https://pnpm.io/) as package manager, please [install](
npm i -g pnpm
```

## Get-started

https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project

## Clone & Install

```bash
Expand Down
34 changes: 21 additions & 13 deletions examples/standalone/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@
"dev": "pnpm --filter=!@oplayer/docs --parallel run start",
"dev:exam": "cd examples/standalone && pnpm run start",
"dev:ui": "pnpm --filter=@oplayer/ui run start",
"build": "pnpm --filter=!@oplayer/docs run build && cp -r packages/ui/dist/index.ui.js packages/core/dist",
"build:packs": "pnpm --filter=@oplayer/* run build && cp -r packages/ui/dist/index.ui.js packages/core/dist",
"build:core": "pnpm --filter=@oplayer/core run build",
"build:docs": "pnpm --filter=@oplayer/docs run build",
"build:plugins": "pnpm --filter=@oplayer/plugins run build",
"build:ui": "pnpm --filter=@oplayer/ui run build",
"build:cache": "nx run-many --target=build --all --parallel",
"build": "pnpm --filter=!@oplayer/docs run build && pnpm run cp:ui",
"build:packs": "pnpm --filter=@oplayer/* run build && pnpm run cp:ui",
"build:cache": "nx run-many --target=build --all --parallel && pnpm run cp:ui",
"build:affected": "nx Affected --target=build",
"graph": "nx dep-graph",
"cp:ui": "cp -r packages/ui/dist/index.ui.js packages/core/dist",
"clear": "rimraf 'packages/*/{dist,tsconfig.tsbuildinfo,node_modules,.rollup.cache}' && rimraf node_modules && rimraf docs",
"changeset": "changeset",
"release": "changeset publish",
Expand All @@ -45,7 +46,7 @@
"@babel/plugin-transform-template-literals": "^7.25.9",
"@changesets/cli": "^2.27.11",
"@rollup/plugin-babel": "^6.0.4",
"@types/node": "^20.17.11",
"@types/node": "^20.17.12",
"@vitejs/plugin-react": "^4.3.4",
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
"concurrently": "^8.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/core",
"version": "1.2.38-beta.0",
"version": "1.2.38-beta.1",
"description": "Oh! Another HTML5 video player.",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
13 changes: 6 additions & 7 deletions packages/core/src/i18n/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,30 @@
"Mute": "بی‌صدا کردن",
"Speed": "سرعت",
"LIVE": "زنده",
"WebFullscreen":"تمام صفحه وب",
"WebFullscreen": "تمام صفحه وب",
"Chromecast": "کروم کاست",
"AirPlay":"ایر پلی",
"AirPlay": "ایر پلی",

"Language": "زبان",
"Screenshot": "عکس صفحه",
"Subtitle": "زیرنویس",
"Quality": "کیفیت",
"Fullscreen": "تمام صفحه",
"TextDecoder Not Supported": "رمزگشای متن پشتیبانی نمی‌شود",
"Settings": "تنظیمات",
"Picture in Picture": "تصویر در تصویر",

"Danmaku": "دانماکو",
"Display": "نمایش",
"Opacity": "شفافیت",
"FontSize": "اندازه فونت",
"Display Area": "ناحیه نمایش",

"Off": "خاموش",
"Auto": "خودکار",
"Default": "پیش‌فرض",
"Normal": "عادی",

"%ss": "%s ثانیه",
"Close": "بستن",
"Can be closed after %ss": "قابل بستن پس از %s ثانیه"
}
}
16 changes: 8 additions & 8 deletions packages/core/src/i18n/pa.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@
"Mute": "غلی کول",
"Speed": "چټکتیا",
"LIVE": "ژوندی",
"WebFullscreen":"د تمام صفحه وب",
"WebFullscreen": "د تمام صفحه وب",
"Chromecast": "کروم کاسټ",
"AirPlay":"ایر پلی",
"AirPlay": "ایر پلی",

"Language": "ژبه",
"Screenshot": "سکرین شاټ",
"Subtitle": "لاندې لیک",
"Quality": "کیفیت",
"Fullscreen": "پوره پرده",
"TextDecoder Not Supported": "د متن ډیکوډر ملاتړ نه لري",
"": "د متن ډیکوډر ملاتړ نه لري",
"Settings": "ترتیبات",
"Picture in Picture": "انځور په انځور",

"Danmaku": "دانماکو",
"Display": "ښکاره کول",
"Opacity": "روڼوالی",
"FontSize": "د خط اندازه",
"Display Area": "د ښودلو ساحه",

"Off": "بند",
"Auto": "خودکار",
"Default": "پېل شوی",
"Normal": "عادي",

"%ss": "%s ثانیه",
"Close": "بندول",
"Can be closed after %ss": "د %s ثانیو وروسته تړل کېدای شي"
}
}
1 change: 0 additions & 1 deletion packages/core/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"Subtitle": "字幕",
"Quality": "画质",
"Fullscreen": "全屏",
"TextDecoder Not Supported": "不支持原生字幕",
"Settings": "设置",
"Picture in Picture": "画中画",

Expand Down
Loading

0 comments on commit bb7bc6d

Please sign in to comment.