Skip to content

Commit

Permalink
feat(common): add new key word for localization
Browse files Browse the repository at this point in the history
  • Loading branch information
code-lish committed Jan 8, 2025
1 parent 769c540 commit b112745
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
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
2 changes: 2 additions & 0 deletions packages/core/src/i18n/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"WebFullscreen":"تمام صفحه وب",
"Chromecast": "کروم کاست",
"AirPlay":"ایر پلی",
"PLAYLIST":"پلی‌لیست",
"Heatmap":"نقشهٔ حرارتی",

"Language": "زبان",
"Screenshot": "عکس صفحه",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/i18n/pa.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"WebFullscreen":"د تمام صفحه وب",
"Chromecast": "کروم کاسټ",
"AirPlay":"ایر پلی",

"PLAYLIST":"پلې‌لسټ",
"Heatmap":"د ډېرو کتلو نقشه",

"Language": "ژبه",
"Screenshot": "سکرین شاټ",
"Subtitle": "لاندې لیک",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/plugins",
"version": "1.0.15-beta.0",
"version": "1.0.15-beta.1",
"author": "shiyiya",
"description": "oplayer's plugin",
"homepage": "https://github.com/shiyiya/oplayer",
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/src/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ export default class PlaylistPlugin implements PlayerPlugin {
this.player.context.ui.$root.appendChild(this.$root)

this.player.context.ui.menu.register({
name: 'Playlist',
name: this.player.locales.get('PLAYLIST'),

icon: `<svg style="transform: scale(1.2);" viewBox="0 0 1024 1024"><path d="M213.333333 426.666667h426.666667c23.466667 0 42.666667 19.2 42.666667 42.666666s-19.2 42.666667-42.666667 42.666667H213.333333c-23.466667 0-42.666667-19.2-42.666666-42.666667s19.2-42.666667 42.666666-42.666666z m0-170.666667h426.666667c23.466667 0 42.666667 19.2 42.666667 42.666667s-19.2 42.666667-42.666667 42.666666H213.333333c-23.466667 0-42.666667-19.2-42.666666-42.666666s19.2-42.666667 42.666666-42.666667z m0 341.333333h256c23.466667 0 42.666667 19.2 42.666667 42.666667s-19.2 42.666667-42.666667 42.666667H213.333333c-23.466667 0-42.666667-19.2-42.666666-42.666667s19.2-42.666667 42.666666-42.666667z m384 37.546667v180.48c0 16.64 17.92 26.88 32.426667 18.346667l150.613333-90.453334c13.653333-8.106667 13.653333-28.16 0-36.693333l-150.613333-90.453333a21.674667 21.674667 0 0 0-32.426667 18.773333z"></path></svg>`,
position: 'top',
onClick: () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/ui",
"version": "1.3.4-beta.1",
"version": "1.3.4-beta.2",
"description": "ui plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down

0 comments on commit b112745

Please sign in to comment.