Skip to content

Commit

Permalink
Merge pull request #133 from VampireChicken12/dev
Browse files Browse the repository at this point in the history
Update translations and refactor slightly
  • Loading branch information
VampireChicken12 authored Nov 30, 2023
2 parents 0b84c4b + b582035 commit 0b2e3bb
Show file tree
Hide file tree
Showing 20 changed files with 95 additions and 56 deletions.
4 changes: 2 additions & 2 deletions public/locales/ca-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -143,7 +143,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/fa-IR.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions public/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down Expand Up @@ -250,4 +250,4 @@
"settingVolume": "Setting volume boost to {{VOLUME_BOOST_AMOUNT}}",
"resumingVideo": "Resuming video at {{VIDEO_TIME}}"
}
}
}
4 changes: 2 additions & 2 deletions public/locales/he-IL.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
36 changes: 18 additions & 18 deletions public/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
},
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"title": "キーバインドを押さえるでスクロールホイール音量制御可能にさせる",
"label": "キーバインドに押さえる"
},
"optionLabel": "{{KEY}} キー",
"select": {
Expand All @@ -162,48 +162,48 @@
},
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"title": "右クリックに押さえるでスクロールホイール音量制御可能にする",
"label": "右クリックに押さえるで可能にする"
}
}
},
"automaticQuality": {
"title": "自動画質設定",
"enable": {
"title": "Automatically adjusts the video quality to the selected level.",
"title": "選択したレベルに合わせて動画の画質を自動的に調整します。",
"label": "自動画質調整"
},
"select": {
"label": "プレイヤーの動画質",
"title": "The quality to set the video to"
"title": "動画の画質に設定する"
}
},
"playbackSpeed": {
"title": "Playback speed settings",
"title": "再生速度設定",
"enable": {
"title": "Sets the video speed to what you choose below",
"label": "Forced playback speed"
"title": "強制再生速度を可能にする",
"label": "強制再生速度"
},
"select": {
"label": "Player speed",
"title": "The speed to set the video to"
"label": "動画の再生速度",
"title": "動画の速度に設定する"
}
},
"volumeBoost": {
"title": "Volume boost settings",
"title": "音量ブーストの設定",
"enable": {
"title": "Boosts the volume of the video you're watching",
"label": "Volume boost"
"title": "見ている動画の音量をブーストする",
"label": "音量ブースト"
},
"number": {
"label": "Volume boost amount (dB)",
"title": "The amount to boost the volume by"
"label": "デシベル(dB)で音量ブースト",
"title": "音量ブーストの量"
}
},
"screenshotButton": {
"title": "Screenshot settings",
"title": "スクリーンショット設定",
"enable": {
"title": "Adds a button to the player to take a screenshot of the video",
"title": "動画をスクリーンショット撮るするボタンをビデオ・プレーヤーに追加する",
"label": "スクリーンショットボタン"
},
"selectSaveAs": {
Expand Down
4 changes: 2 additions & 2 deletions public/locales/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions public/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion public/locales/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} anahtarı",
"select": {
Expand Down
4 changes: 2 additions & 2 deletions public/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"holdModifierKey": {
"enable": {
"title": "Press a modifier key to enable volume adjustment with the scroll wheel.",
"label": "Hold modifier key"
"label": "Enable when holding modifier key"
},
"optionLabel": "{{KEY}} key",
"select": {
Expand All @@ -163,7 +163,7 @@
"holdRightClick": {
"enable": {
"title": "Hold right click to enable scroll wheel volume control",
"label": "Enable Holding right click"
"label": "Enable when holding right click"
}
}
},
Expand Down
8 changes: 7 additions & 1 deletion release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ module.exports = {
"@semantic-release/commit-analyzer",
{
preset: "angular",
releaseRules: [{ type: "translations", release: "patch" }]
releaseRules: [
{ type: "translations", release: "patch" },
{
type: "refactor",
release: "minor"
}
]
}
],
"@semantic-release/release-notes-generator",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const translationPercentages: Record<AvailableLocales, number> = {
"he-IL": 0,
"hi-IN": 0,
"it-IT": 0,
"ja-JP": 83,
"ja-JP": 100,
"pl-PL": 3,
"pt-BR": 0,
"ru-RU": 100,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/plugins/copy-public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const outDir = resolve(__dirname, "..", "..", "..", outputFolderName);
const publicDir = resolve(__dirname, "..", "..", "..", "public");
export default function copyPublic(): PluginOption {
return {
buildEnd() {
closeBundle() {
for (const browser of browsers) {
if (!existsSync(resolve(outDir, browser.name))) {
mkdirSync(resolve(outDir, browser.name), { recursive: true });
Expand Down
2 changes: 1 addition & 1 deletion src/utils/plugins/make-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function writeManifest(version: 2 | 3, browserName: string) {
}
export default function makeManifest(): PluginOption {
return {
buildEnd() {
closeBundle() {
for (const browser of browsers) {
if (!existsSync(resolve(outDir, browser.name))) {
mkdirSync(resolve(outDir, browser.name), { recursive: true });
Expand Down
Loading

0 comments on commit 0b2e3bb

Please sign in to comment.