Skip to content
Merged
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
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# v2.11.0، حالت یادگیری دوزبانه، لغت با یک کلیک و ترجمهٔ سریع‌تر

### قابلیت‌های جدید
- **نمایش دوزبانه**: زیرنویس اصلی و ترجمه را هم‌زمان روی ویدیو ببین. از پنل زیرنویس «نمایش دوزبانه» را روشن کن.
- **کلمه را بزن، معنی را بخوان**: روی هر کلمهٔ زیرنویس اصلی که بزنی، ویدیو مکث می‌کند و معنی فوراً نشان داده می‌شود. با یک کلیک «افزودن به لغت‌های من» و بستن کارت ویدیو را ادامه می‌دهد.

### بهبود
- **ترجمهٔ سریع‌تر**: تا سه دستهٔ ۸۰ خطی هم‌زمان ترجمه می‌شوند و هر دسته به‌محض آماده شدن روی ویدیو می‌نشیند.
- **ادغام قطعه‌های کپشن خودکار یوتیوب**: زیرنویس‌های کوتاه و پراکنده به جمله‌های کامل تبدیل می‌شوند.
- **نقطهٔ پایانی فارسی**: نقطهٔ آخر جمله‌های فارسی در زیرنویس حذف می‌شود؛ ؟ ! و ... حفظ می‌شوند.
- **کش مشترک با سرور**: جمله‌هایی که قبلاً ترجمه شده‌اند از کش سرور و با همان مدل انتخابی برمی‌گردند.
- **تازه‌ها (What's New)**: صفحهٔ تازه‌ها بخش ۲.۱۱.۰ را دارد.

### یادداشت
- این نسخه تغییرات بعد از ۲.۹.۴۱ را هم شامل می‌شود.

### English summary
- **Bilingual view**: original and translated subtitles together on the video.
- **Tap a word**: the video pauses, the meaning appears at once, and one click saves the word to My Vocabulary.
- **Faster translation**: up to three parallel batches of 80 lines, each shown as soon as it is ready.
- **YouTube auto-caption fragments** are merged into full sentences; Persian final full stops are removed (? ! and ... kept).
- **Shared server cache** for repeated sentences, with the chosen model.

# v2.9.41، یکدست‌سازی رابط و پنل تازه‌ها

### تغییرات
Expand Down
4 changes: 2 additions & 2 deletions README.En.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ Subify is available for Chromium-based browsers and Firefox.
[![Visit Subify Website](https://img.shields.io/badge/Visit-Subify%20Website-8b7cff?style=for-the-badge)](https://sub-ify.site/)


### 📥 Download version 2.9.41
### 📥 Download version 2.11.0

Manual install files for Chrome and Firefox are on the [release page](https://github.com/mobinbiback/Subify/releases#release-v2.9.41).
Manual install files for Chrome and Firefox are on the [release page](https://github.com/mobinbiback/Subify/releases#release-v2.11.0).

---

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

### 📥 دانلود نسخهٔ ۲.۹.۴۱

فایل‌های نصب دستی برای Chrome و Firefox در [صفحهٔ ریلیز](https://github.com/mobinbiback/Subify/releases#release-v2.9.41) هستند.
فایل‌های نصب دستی برای Chrome و Firefox در [صفحهٔ ریلیز](https://github.com/mobinbiback/Subify/releases#release-v2.11.0) هستند.

---

Expand Down
5 changes: 5 additions & 0 deletions _locales/ar/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extName": {
"message": "سوبيفاي: ترجمة ودبلجة بالذكاء الاصطناعي"
}
}
5 changes: 5 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extName": {
"message": "Subify: AI Subtitle Translator & Dubbing"
}
}
5 changes: 5 additions & 0 deletions _locales/fa/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extName": {
"message": "سابی‌فای: مترجم زیرنویس و دوبله با هوش مصنوعی"
}
}
11 changes: 7 additions & 4 deletions account-gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ var browser = globalThis.browser || globalThis.chrome; // Chrome has no browser
return '<div style="display:flex;justify-content:space-between;gap:10px;font-size:12.5px;margin-top:8px"><span>' + inl(fa, en) + '</span><b dir="ltr">' + esc(used + ' / ' + limit) + '</b></div>' + aiMeter(used, limit);
}
function loadAiUsage(host) {
fetch(SITE + '/auth/ai.php?action=state', { credentials: 'include', cache: 'no-store' })
.then(function (r) { return r.json(); })
ask('subify-api', { path: '/auth/ai.php?action=state' })
.then(function (r) { return r && r.json; })
.then(function (s) {
if (!host || !s || s.ok === false) return;
var now = Date.now(), n = new Date(now);
Expand Down Expand Up @@ -764,7 +764,8 @@ var browser = globalThis.browser || globalThis.chrome; // Chrome has no browser
lastUser = state.user || null;
// no-sign-in trial: while the first 10 videos are free, the wall stays down for this video
var trialOpen = !!(state.trial && state.trial.allowed);
if (state.required && !state.user && !trialOpen) {
// Switch on: no wall. A guest signs in when a Subify Server request asks for it; own-key use is never walled.
if (state.required && !state.user && !trialOpen && !state.subscription) {
if (IS_OPTIONS) clearAccountHost();
if (bar) { bar.remove(); bar = null; }
var accBtn = document.getElementById('subify-account-btn'); if (accBtn) accBtn.remove();
Expand All @@ -779,6 +780,8 @@ var browser = globalThis.browser || globalThis.chrome; // Chrome has no browser
document.dispatchEvent(new CustomEvent('subify-auth-state', { detail: state }));
} else if (state.user) {
popupBar(state.user);
} else if (state.required && state.subscription && !state.user) {
popupAccountButton(gT('ورود لازم است برای Subify Server', 'Sign in for Subify Server'));
} else if (state.required && state.trial) {
popupGuestButton(state.trial);
}
Expand All @@ -801,5 +804,5 @@ var browser = globalThis.browser || globalThis.chrome; // Chrome has no browser

document.addEventListener('visibilitychange', function () { if (!document.hidden) refresh(true); });
window.addEventListener('focus', function () { refresh(true); });
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', function () { refresh(false); }); else refresh(false);
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', function () { refresh(true); }); else refresh(true);
})();
1 change: 1 addition & 0 deletions ai-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ var browser = globalThis.browser || globalThis.chrome; // Chrome has no browser
audio: opts.audio || undefined,
temperature: opts.temperature,
maxTokens: opts.maxTokens,
noContinue: !!opts.noContinue,
videoId: opts.videoId || ""
});
if (!res || typeof res !== "object") return fail("unknown", "پاسخی از افزونه نیامد. صفحه را دوباره باز کن.");
Expand Down
Loading