Skip to content

A full-featured download manager.

feat(i18n): localize information units across the interface (#2259)

Dr_rOot49f47bea191a
diff --git a/.github/pr-assets/unit-localization-fr.png b/.github/pr-assets/unit-localization-fr.png
new file mode 100644
index 00000000..7a2e885c
Binary files /dev/null and b/.github/pr-assets/unit-localization-fr.png differ
diff --git a/.github/pr-assets/unit-localization-ru.png b/.github/pr-assets/unit-localization-ru.png
new file mode 100644
index 00000000..33ab7dd4
Binary files /dev/null and b/.github/pr-assets/unit-localization-ru.png differ
diff --git a/.github/pr-assets/unit-localization-zh-CN.png b/.github/pr-assets/unit-localization-zh-CN.png
new file mode 100644
index 00000000..c1f319a3
Binary files /dev/null and b/.github/pr-assets/unit-localization-zh-CN.png differ
diff --git a/e2e/unit-localization.spec.ts b/e2e/unit-localization.spec.ts
new file mode 100644
index 00000000..9d1432a9
--- /dev/null
+++ b/e2e/unit-localization.spec.ts
@@ -0,0 +1,54 @@
+import { Commands } from '@shared/protocol/commands'
+import { Queries } from '@shared/protocol/queries'
+import { expect, test, waitForEngineReady } from './fixtures/electron-app'
+
+test('language changes localize speed limits and preserve stored bytes', async ({
+ mainWindow,
+}, testInfo) => {
+ await waitForEngineReady(mainWindow)
+ await mainWindow.getByRole('link', { name: 'Downloads', exact: true }).click()
+ await mainWindow.evaluate(async (channel) => {
+ await window.motrix.invoke(channel, {
+ app: { byteUnitSystem: 'binary' },
+ speedLimit: {
+ turtle: 'off',
+ base: { upload: 1_048_576, download: 1_572_864 },
+ },
+ })
+ }, Commands.UpdateSettings)
+ const badge = mainWindow.locator('[data-slot="downloads-speed-limit"]')
+ for (const [locale, expected] of [
+ ['fr', '1,5 Mio/s'],
+ ['ru', '1,5 МиБ/с'],
+ ['uk', '1,5 МіБ/с'],
+ ['ja', '1.5 MiB/秒'],
+ ['ar', 'MiB/ث'],
+ ['zh-CN', '1.5 MiB/s'],
+ ]) {
+ await mainWindow.evaluate(
+ async ({ channel, language }) => {
+ await window.motrix.invoke(channel, { app: { language } })
+ },
+ { channel: Commands.UpdateSettings, language: locale }
+ )
+ await badge.hover()
+ await expect(mainWindow.getByRole('tooltip')).toContainText(expected)
+ await expect
+ .poll(() =>
+ mainWindow.evaluate(
+ (channel) => window.motrix.invoke(channel),
+ Queries.GetSettings
+ )
+ )
+ .toMatchObject({
+ app: { byteUnitSystem: 'binary' },
+ speedLimit: { base: { upload: 1_048_576, download: 1_572_864 } },
+ })
+ await mainWindow.screenshot({
+ path: testInfo.outputPath(`${locale}-speed-limit.png`),
+ animations: 'disabled',
+ scale: 'css',
+ })
+ await mainWindow.mouse.move(0, 0)
+ }
+})
diff --git a/src/main/platform/tray-icon.ts b/src/main/platform/tray-icon.ts
index 08e34487..eef25dde 100644
--- a/src/main/platform/tray-icon.ts
+++ b/src/main/platform/tray-icon.ts
@@ -12,6 +12,8 @@ import { nativeImage, nativeTheme } from 'electron'
// ─── formatSpeed (exported for testing) ─────────────────────
+// Fixed-width tray artwork uses an explicit font set without system glyph fallback.
+// Keep compact international symbols and ASCII numbers independent of UI locale.
const UNITS = {
decimal: ['KB/s', 'MB/s', 'GB/s', 'TB/s'],
binary: ['KiB/s', 'MiB/s', 'GiB/s', 'TiB/s'],
diff --git a/src/renderer/components/add-task/advanced-panel.test.tsx b/src/renderer/components/add-task/advanced-panel.test.tsx
index 1789cff2..627bef9f 100644
--- a/src/renderer/components/add-task/advanced-panel.test.tsx
+++ b/src/renderer/components/add-task/advanced-panel.test.tsx
@@ -4,7 +4,7 @@ import userEvent from '@testing-library/user-event'
import { FormProvider, useForm } from 'react-hook-form'
import { afterEach, describe, expect, it, vi } from 'vitest'
import '@testing-library/jest-dom/vitest'
-import '@renderer/lib/i18n'
+import { i18n } from '@renderer/lib/i18n'
import { AddTaskLayoutProvider } from './add-task-layout-context'
import { AdvancedPanel } from './advanced-panel'
@@ -49,11 +49,31 @@ function Wrapper({
)
}
-afterEach(() => {
+afterEach(async () => {
cleanup()
+ await i18n.changeLanguage('en-US')
setByteUnitSystem('decimal')
})
+it('localizes a populated limit without changing the submitted bytes', async () => {
+ setByteUnitSystem('binary')
+ const onSubmit = vi.fn()
+ const user = userEvent.setup()
+ render(<Wrapper tab="torrent" onSubmit={onSubmit} />)
+ await user.click(screen.getByRole('button', { name: /advanced/i }))
+ const input = screen.getByLabelText(/dl limit/i)
+ fireEvent.change(input, { target: { value: '1.5' } })
+ await act(async () => {
+ await i18n.changeLanguage('fr')
+ })
+ expect(input).toHaveValue(1.5)
+ expect(input).toHaveAccessibleName(/Kio\/s/)
+ await user.click(screen.getByRole('button', { name: 'Submit' }))
+ expect(onSubmit).toHaveBeenCalledWith(
+ expect.objectContaining({ dlLimit: 1536 })
+ )
+})
+
describe('AdvancedPanel', () => {
it('renders Links-flavored fields when tab=links', async () => {
const user = userEvent.setup()
diff --git a/src/renderer/components/add-task/advanced-panel.tsx b/src/renderer/components/add-task/advanced-panel.tsx
index 687e967d..ca4e5864 100644
--- a/src/renderer/components/add-task/advanced-panel.tsx
+++ b/src/renderer/components/add-task/advanced-panel.tsx
@@ -123,9 +123,9 @@ function LinksAdvancedFields() {
}
function TorrentAdvancedFields() {
- const { unitSystem } = useByteFormat()
+ const { unitSystem, formatByteUnit } = useByteFormat()
const scale = unitSystem === 'binary' ? 1024 : 1000
- const unit = unitSystem === 'binary' ? 'KiB/s' : 'KB/s'
+ const unit = formatByteUnit(unitSystem === 'binary' ? 'KiB' : 'KB', true)
const { t } = useTranslation()
const { control } = useFormContext<AddTaskFormValues>()
return (
diff --git a/src/renderer/components/byte-unit-sync.test.tsx b/src/renderer/components/byte-unit-sync.test.tsx
index 05983b92..c82bff5b 100644
--- a/src/renderer/components/byte-unit-sync.test.tsx
+++ b/src/renderer/components/byte-unit-sync.test.tsx
@@ -2,6 +2,7 @@ import {
setByteUnitSystem,
useByteFormat,
} from '@renderer/hooks/use-byte-format'
+import { i18n } from '@renderer/lib/i18n'
import { transport } from '@renderer/lib/transport'
import type {
EventListener,
@@ -35,7 +36,8 @@ function Values() {
)
}
-beforeEach(() => {
+beforeEach(async () => {
+ await i18n.changeLanguage('en-US')
vi.clearAllMocks()
setByteUnitSystem('decimal')
vi.stubGlobal('navigator', { platform: 'MacIntel' })
@@ -55,7 +57,8 @@ beforeEach(() => {
})
})
-afterEach(() => {
+afterEach(async () => {
+ await i18n.changeLanguage('en-US')
cleanup()
vi.unstubAllGlobals()
setByteUnitSystem('decimal')
@@ -77,6 +80,23 @@ it('hydrates and updates mounted size and speed displays without a reload', asyn
expect(screen.getByRole('status').textContent).toBe('1.05 MB · 1.0 MB/s')
})
+it('updates mounted values on language changes without changing the unit preference', async () => {
+ setByteUnitSystem('binary')
+ render(<Values />)
+ for (const [locale, expected] of [
+ ['fr', '1,00 Mio · 1,0 Mio/s'],
+ ['ru', '1,00 МиБ · 1,0 МиБ/с'],
+ ['uk', '1,00 МіБ · 1,0 МіБ/с'],
+ ['zh-CN', '1.00 MiB · 1.0 MiB/s'],
+ ]) {
+ await act(async () => {
+ await i18n.changeLanguage(locale)
+ })
+ expect(screen.getByRole('status').textContent).toBe(expected)
+ }
+ expect(transport.invoke).not.toHaveBeenCalled()
+})
+
it('subscribes first and ignores snapshots older than a live update', async () => {
let resolveSnapshot!: (value: unknown) => void
vi.mocked(transport.invoke).mockImplementation(
diff --git a/src/renderer/hooks/use-byte-format.ts b/src/renderer/hooks/use-byte-format.ts
index b67ca67e..3198b985 100644
--- a/src/renderer/hooks/use-byte-format.ts
+++ b/src/renderer/hooks/use-byte-format.ts
@@ -1,36 +1,18 @@
import {
type ByteUnitPreference,
- type ByteUnitSystem,
DEFAULT_BYTE_UNIT_PREFERENCE,
resolveByteUnitSystem,
} from '@shared/schemas/byte-unit-system'
-import {
- type ByteValue,
- formatBytes,
- formatSpeed,
- formatSpeedLimit,
-} from '@shared/utils/format-bytes'
-import { useSyncExternalStore } from 'react'
-
-function createFormatters(unitSystem: ByteUnitSystem) {
- return {
- unitSystem,
- formatBytes: (bytes: ByteValue) => formatBytes(bytes, { unitSystem }),
- formatSpeed: (bytes: ByteValue) => formatSpeed(bytes, unitSystem),
- formatSpeedLimit: (bytes: ByteValue) => formatSpeedLimit(bytes, unitSystem),
- }
-}
+import { createLocalizedByteFormatter } from '@shared/utils/localized-byte-format'
+import { useMemo, useSyncExternalStore } from 'react'
+import { useTranslation } from 'react-i18next'
-const formatters = {
- decimal: createFormatters('decimal'),
- binary: createFormatters('binary'),
-}
const listeners = new Set<() => void>()
const devicePlatform = () => globalThis.navigator?.platform ?? ''
-let current =
- formatters[
- resolveByteUnitSystem(DEFAULT_BYTE_UNIT_PREFERENCE, devicePlatform())
- ]
+let current = resolveByteUnitSystem(
+ DEFAULT_BYTE_UNIT_PREFERENCE,
+ devicePlatform()
+)
const getSnapshot = () => current
const subscribe = (listener: () => void) => {
listeners.add(listener)
@@ -45,11 +27,17 @@ export function setByteUnitSystem(
platform = devicePlatform()
): void {
const value = resolveByteUnitSystem(preference, platform)
- if (current === formatters[value]) return
- current = formatters[value]
+ if (current === value) return
+ current = value
for (const listener of listeners) listener()
}
export function useByteFormat() {
- return useSyncExternalStore(subscribe, getSnapshot)
+ const unitSystem = useSyncExternalStore(subscribe, getSnapshot)
+ const { t, i18n } = useTranslation()
+ const locale = i18n.resolvedLanguage ?? i18n.language ?? 'en-US'
+ return useMemo(
+ () => createLocalizedByteFormatter(unitSystem, locale, t),
+ [unitSystem, locale, t]
+ )
}
diff --git a/src/renderer/routes/dashboard/components/kpi-number.test.tsx b/src/renderer/routes/dashboard/components/kpi-number.test.tsx
index a3c92e9a..b8665183 100644
--- a/src/renderer/routes/dashboard/components/kpi-number.test.tsx
+++ b/src/renderer/routes/dashboard/components/kpi-number.test.tsx
@@ -5,6 +5,26 @@ import { describe, expect, it } from 'vitest'
import { KpiNumber } from './kpi-number'
describe('KpiNumber', () => {
+ it.each([
+ ['1,50', 'Mio'],
+ ['1,5', 'МиБ/с'],
+ ['١٫٥', 'MiB/ث'],
+ ['۱٫۵', 'MiB/ثانیه'],
+ ['1\u202f234,5', 'Mo'],
+ ])(
+ 'keeps localized numbers and units separately sized: %s %s',
+ (number, unit) => {
+ const { container } = render(<KpiNumber value={`${number} ${unit}`} />)
+ const spans = container.querySelectorAll(
+ '[data-slot="kpi-number"] > span'
+ )
+ expect(spans).toHaveLength(2)
+ expect(spans[0].textContent).toBe(number)
+ expect(spans[1]).toHaveTextContent(unit)
+ expect(spans[1]).toHaveClass('shrink-0', 'text-[12px]')
+ }
+ )
+
it('renders text content with proportional-nums and split unit sizing', () => {
const { container } = render(<KpiNumber value="1.2 MB/s" />)
const el = container.firstElementChild as HTMLElement
diff --git a/src/renderer/routes/dashboard/components/kpi-number.tsx b/src/renderer/routes/dashboard/components/kpi-number.tsx
index 6398f999..28e66c8f 100644
--- a/src/renderer/routes/dashboard/components/kpi-number.tsx
+++ b/src/renderer/routes/dashboard/components/kpi-number.tsx
@@ -14,7 +14,8 @@ const SIZE: Record<NonNullable<KpiNumberProps['variant']>, string> = {
compact: 'text-[18px]',
}
-const VALUE_WITH_UNIT = /^(-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?)\s+(.+)$/
+const VALUE_WITH_UNIT =
+ /^(-?\p{Decimal_Number}+(?:[.,\u066b\u066c\u00a0\u202f]\p{Decimal_Number}+)*)\s+(.+)$/u
function splitValueUnit(
value: string | number
diff --git a/src/renderer/routes/dashboard/tiles/transfer-tile.tsx b/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
index 5e6755c4..22564812 100644
--- a/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
+++ b/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
@@ -12,7 +12,6 @@ import { useByteFormat } from '@renderer/hooks/use-byte-format'
import type { TransferStatsState } from '@renderer/hooks/use-transfer-stats'
import { cn } from '@renderer/lib/utils'
import type { TransferRangeStats } from '@shared/types/stats'
-import { formatBytes as formatByteCount } from '@shared/utils/format-bytes'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { KpiNumber } from '../components/kpi-number'
@@ -282,7 +281,7 @@ export function TransferTile({
viewport,
className,
}: TransferTileProps) {
- const { unitSystem } = useByteFormat()
+ const { formatBytes } = useByteFormat()
const { t, i18n } = useTranslation()
const [scope, setScope] = useState<TransferScope>('today')
@@ -294,8 +293,7 @@ export function TransferTile({
const range = snapshot?.[scope]
const totalIsZero = range ? parseByteCount(range.totalBytes) === 0n : false
const formattedTotal = range
- ? formatByteCount(range.totalBytes, {
- unitSystem,
+ ? formatBytes(range.totalBytes, {
decimals: compact ? 1 : 2,
})
: null
diff --git a/src/renderer/routes/plugins/components/consent-diff-section.tsx b/src/renderer/routes/plugins/components/consent-diff-section.tsx
index 10fe5ea8..c931c229 100644
--- a/src/renderer/routes/plugins/components/consent-diff-section.tsx
+++ b/src/renderer/routes/plugins/components/consent-diff-section.tsx
@@ -48,7 +48,7 @@ export function ConsentDiffSection({ diff }: { diff: TrustSurfaceDiff }) {
{t('plugins.consent.diff.heap')}:
</span>{' '}
{diff.requestedHeapMBIncreased.from} →{' '}
- {diff.requestedHeapMBIncreased.to} MB
+ {diff.requestedHeapMBIncreased.to} {t('units.bytes.mb')}
</li>
)}
{diff.enginesMotrixMajorChange && (
diff --git a/src/renderer/routes/settings/cards/appearance-dialog.tsx b/src/renderer/routes/settings/cards/appearance-dialog.tsx
index 00bcde3d..32b45cd1 100644
--- a/src/renderer/routes/settings/cards/appearance-dialog.tsx
+++ b/src/renderer/routes/settings/cards/appearance-dialog.tsx
@@ -39,6 +39,7 @@ import {
} from '@renderer/components/ui/select'
import { Separator } from '@renderer/components/ui/separator'
import { Switch } from '@renderer/components/ui/switch'
+import { useByteFormat } from '@renderer/hooks/use-byte-format'
import { pickDirty } from '@renderer/lib/form-utils'
import { saveSettings } from '@renderer/lib/settings-save'
import { useSidebarColorState } from '@renderer/lib/sidebar-color'
@@ -144,6 +145,7 @@ export function AppearanceDialog({
onClose()
})
+ const { formatByteUnit } = useByteFormat()
const systemUnits = resolveByteUnitSystem(
'system',
transport.platform === 'web' ? navigator.platform : transport.platform
@@ -152,11 +154,26 @@ export function AppearanceDialog({
{
value: 'system',
label: t('settings.appearance.byteUnitSystemDefault', {
- units: systemUnits === 'binary' ? 'MiB, GiB' : 'MB, GB',
+ units: (systemUnits === 'binary'
+ ? [formatByteUnit('MiB'), formatByteUnit('GiB')]
+ : [formatByteUnit('MB'), formatByteUnit('GB')]
+ ).join(', '),
+ }),
+ },
+ {
+ value: 'decimal',
+ label: t('settings.appearance.byteUnitDecimal', {
+ megabyte: formatByteUnit('MB'),
+ gigabyte: formatByteUnit('GB'),
+ }),
+ },
+ {
+ value: 'binary',
+ label: t('settings.appearance.byteUnitBinary', {
+ megabyte: formatByteUnit('MiB'),
+ gigabyte: formatByteUnit('GiB'),
}),
},
- { value: 'decimal', label: t('settings.appearance.byteUnitDecimal') },
- { value: 'binary', label: t('settings.appearance.byteUnitBinary') },
] satisfies Array<{
value: AppearanceFields['byteUnitSystem']
label: string
diff --git a/src/renderer/routes/settings/cards/engine-number-setting-row.tsx b/src/renderer/routes/settings/cards/engine-number-setting-row.tsx
index 5d2c8057..a359bee2 100644
--- a/src/renderer/routes/settings/cards/engine-number-setting-row.tsx
+++ b/src/renderer/routes/settings/cards/engine-number-setting-row.tsx
@@ -8,6 +8,7 @@ import {
FormMessage,
} from '@renderer/components/ui/form'
import { Input } from '@renderer/components/ui/input'
+import { useByteFormat } from '@renderer/hooks/use-byte-format'
import type { UseFormReturn } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
import {
@@ -34,6 +35,11 @@ export function EngineNumberSettingRow({
presets,
}: EngineNumberSettingRowProps) {
const { t } = useTranslation()
+ const { formatByteUnit } = useByteFormat()
+ const unit =
+ name === 'lowestSpeedLimit'
+ ? formatByteUnit('KiB', true)
+ : formatByteUnit('MiB')
const { min, max, scale, hasUpperBound } = getEngineNumberRules(name)
const scaledPresets = presets?.map((preset) => ({
...preset,
@@ -52,7 +58,7 @@ export function EngineNumberSettingRow({
<FormItem className="space-y-2">
<div className="flex items-start justify-between gap-4">
<div className="space-y-1">
- <FormLabel>{t(labelKey)}</FormLabel>
+ <FormLabel>{t(labelKey, { unit })}</FormLabel>
<FormDescription className="text-xs">
{t(descKey)}{' '}
{t(
diff --git a/src/renderer/routes/settings/cards/performance-section.tsx b/src/renderer/routes/settings/cards/performance-section.tsx
index 39d86a15..a40fa29d 100644
--- a/src/renderer/routes/settings/cards/performance-section.tsx
+++ b/src/renderer/routes/settings/cards/performance-section.tsx
@@ -22,6 +22,7 @@ import {
SelectItem,
SelectValue,
} from '@renderer/components/ui/select'
+import { useByteFormat } from '@renderer/hooks/use-byte-format'
import {
ENGINE_PERFORMANCE_PROFILE_IDS,
type EnginePerformanceProfile,
@@ -46,6 +47,7 @@ export function PerformanceSection({
form: UseFormReturn<DownloadsFields>
}) {
const { t, i18n } = useTranslation()
+ const { formatByteQuantity } = useByteFormat()
const performanceProfile = useWatch({
control: form.control,
name: 'engine.performanceProfile',
@@ -74,12 +76,18 @@ export function PerformanceSection({
{
icon: PieceSizeIcon,
label: t('settings.downloads.performance.metrics.minimum'),
- value: `${Math.round(selectedPerformanceValues.minSplitSize / MB)} MiB`,
+ value: formatByteQuantity(
+ Math.round(selectedPerformanceValues.minSplitSize / MB),
+ 'MiB'
+ ),
},
{
icon: DiskCacheIcon,
label: t('settings.downloads.performance.metrics.cache'),
- value: `${Math.round(selectedPerformanceValues.diskCache / MB)} MiB`,
+ value: formatByteQuantity(
+ Math.round(selectedPerformanceValues.diskCache / MB),
+ 'MiB'
+ ),
},
]
: null
@@ -249,10 +257,10 @@ export function PerformanceSection({
labelKey="settings.downloads.performance.minSplitSize"
descKey="settings.downloads.performance.minSplitSizeDesc"
presets={[
- { label: '1 MiB', value: 1 },
- { label: '4 MiB', value: 4 },
- { label: '10 MiB', value: 10 },
- { label: '20 MiB', value: 20 },
+ { label: formatByteQuantity(1, 'MiB'), value: 1 },
+ { label: formatByteQuantity(4, 'MiB'), value: 4 },
+ { label: formatByteQuantity(10, 'MiB'), value: 10 },
+ { label: formatByteQuantity(20, 'MiB'), value: 20 },
]}
/>
<EngineNumberSettingRow
@@ -261,9 +269,9 @@ export function PerformanceSection({
labelKey="settings.downloads.disk.diskCache"
descKey="settings.downloads.disk.diskCacheDesc"
presets={[
- { label: '16 MiB', value: 16 },
- { label: '32 MiB', value: 32 },
- { label: '64 MiB', value: 64 },
+ { label: formatByteQuantity(16, 'MiB'), value: 16 },
+ { label: formatByteQuantity(32, 'MiB'), value: 32 },
+ { label: formatByteQuantity(64, 'MiB'), value: 64 },
]}
/>
</div>
diff --git a/src/renderer/routes/settings/cards/speed-limit-section.tsx b/src/renderer/routes/settings/cards/speed-limit-section.tsx
index 17046f54..96aa0584 100644
--- a/src/renderer/routes/settings/cards/speed-limit-section.tsx
+++ b/src/renderer/routes/settings/cards/speed-limit-section.tsx
@@ -118,7 +118,7 @@ export function SpeedLimitSection({
}: {
form: UseFormReturn<DownloadsFields>
}) {
- const { unitSystem } = useByteFormat()
+ const { unitSystem, formatByteUnit } = useByteFormat()
const kiloByte = unitSystem === 'binary' ? 1024 : 1000
const { t } = useTranslation()
@@ -161,7 +161,10 @@ export function SpeedLimitSection({
onValueChange={(value) =>
field.onChange(Math.round(value * kiloByte))
}
- unit={unitSystem === 'binary' ? 'KiB/s' : 'KB/s'}
+ unit={formatByteUnit(
+ unitSystem === 'binary' ? 'KiB' : 'KB',
+ true
+ )}
zeroAction={zeroAction}
zeroLabel={t(
zeroAction === 'inherit'
diff --git a/src/shared/locales/ar.json b/src/shared/locales/ar.json
index f1785af1..aa9734d3 100644
--- a/src/shared/locales/ar.json
+++ b/src/shared/locales/ar.json
@@ -1785,8 +1785,8 @@
}
},
"appearance": {
- "byteUnitBinary": "ثنائية (MiB، GiB · 1024)",
- "byteUnitDecimal": "عشرية (MB، GB · 1000)",
+ "byteUnitBinary": "ثنائية ({{megabyte}}، {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "عشرية ({{megabyte}}، {{gigabyte}} · 1000)",
"byteUnitSystem": "وحدات الحجم والسرعة",
"byteUnitSystemDefault": "اتباع النظام ({{units}})",
"byteUnitSystemDesc": "اختر كيفية عرض أحجام الملفات والسرعات.",
@@ -1976,7 +1976,7 @@
"defaultDownloadFolder": "مجلد التنزيل الافتراضي",
"description": "الملفات وسرعة التنزيل والاتصالات",
"disk": {
- "diskCache": "ذاكرة التخزين المؤقت للقرص (MiB)",
+ "diskCache": "ذاكرة التخزين المؤقت للقرص ({{unit}})",
"diskCacheDesc": "ذاكرة لتخزين الملفات مؤقتًا قبل كتابتها إلى القرص.",
"fileAllocation": "حجز مساحة على القرص",
"fileAllocationDesc": "حجز المساحة قبل تنزيل الملف.",
@@ -2017,7 +2017,7 @@
"minimum": "أدنى حجم مقطع",
"perServer": "الحد لكل خادم"
},
- "minSplitSize": "أدنى حجم مقطع (MiB)",
+ "minSplitSize": "أدنى حجم مقطع ({{unit}})",
"minSplitSizeDesc": "لا تُقسّم المقاطع الأصغر من ضعفي هذا الحجم.",
"profile": "أداء التنزيل",
"profileDesc": "وازن بين سرعة التنزيل واستخدام الموارد.",
@@ -2050,7 +2050,7 @@
"reliability": {
"connectTimeout": "مهلة الاتصال (ث)",
"connectTimeoutDesc": "مدة انتظار إنشاء الاتصال.",
- "lowestSpeedLimit": "أدنى سرعة اتصال (KiB/s)",
+ "lowestSpeedLimit": "أدنى سرعة اتصال ({{unit}})",
"lowestSpeedLimitDesc": "قطع الاتصال إذا انخفضت السرعة عن هذه القيمة. 0 = معطّل.",
"maxTries": "أقصى عدد محاولات",
"maxTriesDesc": "يشمل المحاولة الأولى. 0 = غير محدود.",
@@ -2874,5 +2874,23 @@
"preferences": "الإعدادات",
"quit": "خروج",
"showMotrix": "إظهار Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/ث"
}
}
diff --git a/src/shared/locales/bg.json b/src/shared/locales/bg.json
index 040aef63..b061ea0d 100644
--- a/src/shared/locales/bg.json
+++ b/src/shared/locales/bg.json
@@ -1709,8 +1709,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Двоични (MiB, GiB · 1024)",
- "byteUnitDecimal": "Десетични (MB, GB · 1000)",
+ "byteUnitBinary": "Двоични ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Десетични ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Мерни единици за размер и скорост",
"byteUnitSystemDefault": "Според системата ({{units}})",
"byteUnitSystemDesc": "Изберете как да се показват размерите на файловете и скоростите.",
@@ -1900,7 +1900,7 @@
"defaultDownloadFolder": "Папка за изтегляне по подразбиране",
"description": "Файлове, скорост на изтегляне и връзки",
"disk": {
- "diskCache": "Дисков кеш (MiB)",
+ "diskCache": "Дисков кеш ({{unit}})",
"diskCacheDesc": "Памет за буфериране на файловете преди запис на диска.",
"fileAllocation": "Резервиране на дисково пространство",
"fileAllocationDesc": "Резервира място преди изтегляне на файл.",
@@ -1941,7 +1941,7 @@
"minimum": "Минимален сегмент",
"perServer": "Лимит за сървър"
},
- "minSplitSize": "Минимален размер на сегмента (MiB)",
+ "minSplitSize": "Минимален размер на сегмента ({{unit}})",
"minSplitSizeDesc": "Сегменти, по-малки от 2× този размер, няма да се разделят.",
"profile": "Производителност на изтегляне",
"profileDesc": "Балансира скоростта на изтегляне и използването на ресурси.",
@@ -1974,7 +1974,7 @@
"reliability": {
"connectTimeout": "Време за изчакване на връзка (сек)",
"connectTimeoutDesc": "Колко дълго да се изчаква установяването на връзка.",
- "lowestSpeedLimit": "Минимална скорост на връзката (KiB/s)",
+ "lowestSpeedLimit": "Минимална скорост на връзката ({{unit}})",
"lowestSpeedLimitDesc": "Прекъсва връзката под тази скорост. 0 = изключено.",
"maxTries": "Максимален брой опити",
"maxTriesDesc": "Включва първия опит. 0 = без ограничение.",
@@ -2372,7 +2372,7 @@
"restartHint": "Запазено. Рестартирайте Motrix, за да открият активните приставки промените.",
"restartNow": "Рестартиране сега",
"savedTitle": "Настройките на FFmpeg са запазени",
- "stagingMB": "Лимит за временни файлове (MB)",
+ "stagingMB": "Лимит за временни файлове (МБ)",
"stagingMBDesc": "Място за междинни файлове, отделно за всяка приставка и задача.",
"state": {
"active": "Използва се",
@@ -2626,7 +2626,7 @@
"unsupportedInput": "Този формат на входните данни не е внесен. Поставете URL адрес или поддържан вход във формат JSON или Bash cURL.",
"unsupportedProtocol": "Протоколът на този URL адрес не се поддържа за това изтегляне.",
"unsupportedRequestOptions": "HTTP заглавки не могат да се прилагат към FTP изтегляне.",
- "urlTooLong": "URL адресът надхвърля ограничението от 16 KiB."
+ "urlTooLong": "URL адресът надхвърля ограничението от 16 КиБ."
},
"sourceLine": "Ред {{line}}",
"split": "Връзки",
@@ -2786,5 +2786,23 @@
"preferences": "Настройки",
"quit": "Изход",
"showMotrix": "Показване на Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "Б",
+ "kb": "КБ",
+ "mb": "МБ",
+ "gb": "ГБ",
+ "tb": "ТБ",
+ "pb": "ПБ",
+ "eb": "ЕБ",
+ "kib": "КиБ",
+ "mib": "МиБ",
+ "gib": "ГиБ",
+ "tib": "ТиБ",
+ "pib": "ПиБ",
+ "eib": "ЕиБ"
+ },
+ "perSecond": "{{value}}/с"
}
}
diff --git a/src/shared/locales/ca.json b/src/shared/locales/ca.json
index 31e1f7d3..2767f47c 100644
--- a/src/shared/locales/ca.json
+++ b/src/shared/locales/ca.json
@@ -1728,8 +1728,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Binàries (MiB, GiB · 1024)",
- "byteUnitDecimal": "Decimals (MB, GB · 1000)",
+ "byteUnitBinary": "Binàries ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Decimals ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Unitats de mida i velocitat",
"byteUnitSystemDefault": "Seguir el sistema ({{units}})",
"byteUnitSystemDesc": "Trieu com es mostren les mides dels fitxers i les velocitats.",
@@ -1919,7 +1919,7 @@
"defaultDownloadFolder": "Carpeta de baixades predeterminada",
"description": "Fitxers, velocitat de baixada i connexions",
"disk": {
- "diskCache": "Memòria cau del disc (MiB)",
+ "diskCache": "Memòria cau del disc ({{unit}})",
"diskCacheDesc": "Memòria per emmagatzemar temporalment els fitxers abans d'escriure'ls al disc.",
"fileAllocation": "Reservar espai al disc",
"fileAllocationDesc": "Reserva espai abans de baixar un fitxer.",
@@ -1960,7 +1960,7 @@
"minimum": "Segment mínim",
"perServer": "Límit per servidor"
},
- "minSplitSize": "Mida mínima del segment (MiB)",
+ "minSplitSize": "Mida mínima del segment ({{unit}})",
"minSplitSizeDesc": "Els segments més petits que el doble d'aquesta mida no es divideixen.",
"profile": "Rendiment de baixada",
"profileDesc": "Equilibra la velocitat de baixada i l'ús de recursos.",
@@ -1993,7 +1993,7 @@
"reliability": {
"connectTimeout": "Temps d'espera de connexió (s)",
"connectTimeoutDesc": "Quant de temps s'espera per establir una connexió.",
- "lowestSpeedLimit": "Velocitat mínima de connexió (KiB/s)",
+ "lowestSpeedLimit": "Velocitat mínima de connexió ({{unit}})",
"lowestSpeedLimitDesc": "Desconnecta si la velocitat és inferior. 0 = desactivat.",
"maxTries": "Nombre màxim d'intents",
"maxTriesDesc": "Inclou el primer intent. 0 = sense límit.",
@@ -2808,5 +2808,23 @@
"preferences": "Configuració",
"quit": "Sortir",
"showMotrix": "Mostrar el Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/de.json b/src/shared/locales/de.json
index 5942550c..4655ef5d 100644
--- a/src/shared/locales/de.json
+++ b/src/shared/locales/de.json
@@ -1266,8 +1266,8 @@
"lightweightModeDesc": "Bei geschlossenem Fenster Arbeitsspeicher sparen. Downloads laufen weiter, aber das erneute Öffnen dauert länger und nicht gespeicherte Eingaben werden verworfen.",
"byteUnitSystem": "Einheiten für Größe und Geschwindigkeit",
"byteUnitSystemDesc": "Wählen Sie die Anzeigeeinheiten für Dateigrößen und Übertragungsgeschwindigkeiten.",
- "byteUnitDecimal": "Dezimal (MB, GB · 1000)",
- "byteUnitBinary": "Binär (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Dezimal ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binär ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Systemvorgabe ({{units}})",
"sidebarColor": "Akzentfarbe",
"sidebarColors": {
@@ -1503,7 +1503,7 @@
"maxConnectionPerServerDesc": "Verbindungslimit je Datei zu einem Server.",
"split": "Max. Verbindungen pro Datei",
"splitDesc": "Verbindungen zum Herunterladen einer Datei.",
- "minSplitSize": "Min. Segmentgröße (MiB)",
+ "minSplitSize": "Min. Segmentgröße ({{unit}})",
"minSplitSizeDesc": "Segmente kleiner als das Doppelte dieses Werts werden nicht aufgeteilt."
},
"reliability": {
@@ -1518,7 +1518,7 @@
"maxTriesDesc": "Einschließlich des ersten Versuchs. 0 = unbegrenzt.",
"retryWait": "Wartezeit vor Wiederholung (s)",
"retryWaitDesc": "So lange vor einem erneuten Versuch warten.",
- "lowestSpeedLimit": "Minimale Verbindungsgeschwindigkeit (KiB/s)",
+ "lowestSpeedLimit": "Minimale Verbindungsgeschwindigkeit ({{unit}})",
"lowestSpeedLimitDesc": "Verbindung unterhalb dieser Geschwindigkeit trennen. 0 = deaktiviert."
},
"disk": {
@@ -1538,7 +1538,7 @@
"modifiedTimeDesc": "Für abgeschlossene HTTP- und FTP-Downloads.",
"modifiedTimeLocal": "Download-Zeitpunkt",
"modifiedTimeServer": "Zeitangabe des Servers",
- "diskCache": "Datenträger-Cache (MiB)",
+ "diskCache": "Datenträger-Cache ({{unit}})",
"diskCacheDesc": "Arbeitsspeicher zum Puffern von Dateien vor dem Schreiben auf den Datenträger.",
"sessionSaveInterval": "Intervall zum Speichern des Fortschritts (s)",
"sessionSaveIntervalDesc": "Häufiger speichern, um den Fortschrittsverlust bei einem Absturz zu verringern."
@@ -2786,5 +2786,23 @@
},
"manageAction": "Verwalten",
"alreadyFavorite": "Bereits in den Favoriten"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/el.json b/src/shared/locales/el.json
index 65a38dcd..adbe7e0a 100644
--- a/src/shared/locales/el.json
+++ b/src/shared/locales/el.json
@@ -1709,8 +1709,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Δυαδικές (MiB, GiB · 1024)",
- "byteUnitDecimal": "Δεκαδικές (MB, GB · 1000)",
+ "byteUnitBinary": "Δυαδικές ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Δεκαδικές ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Μονάδες μεγέθους και ταχύτητας",
"byteUnitSystemDefault": "Σύμφωνα με το σύστημα ({{units}})",
"byteUnitSystemDesc": "Επιλέξτε πώς εμφανίζονται τα μεγέθη αρχείων και οι ταχύτητες.",
@@ -1900,7 +1900,7 @@
"defaultDownloadFolder": "Προεπιλεγμένος φάκελος λήψεων",
"description": "Αρχεία, ταχύτητα λήψης και συνδέσεις",
"disk": {
- "diskCache": "Προσωρινή μνήμη δίσκου (MiB)",
+ "diskCache": "Προσωρινή μνήμη δίσκου ({{unit}})",
"diskCacheDesc": "Μνήμη που χρησιμοποιείται για την προσωρινή αποθήκευση αρχείων πριν από την εγγραφή στον δίσκο.",
"fileAllocation": "Δέσμευση χώρου στον δίσκο",
"fileAllocationDesc": "Δέσμευση χώρου πριν από τη λήψη ενός αρχείου.",
@@ -1941,7 +1941,7 @@
"minimum": "Ελάχιστο τμήμα",
"perServer": "Όριο ανά διακομιστή"
},
- "minSplitSize": "Ελάχιστο μέγεθος τμήματος (MiB)",
+ "minSplitSize": "Ελάχιστο μέγεθος τμήματος ({{unit}})",
"minSplitSizeDesc": "Τα τμήματα μικρότερα από το διπλάσιο αυτού του μεγέθους δεν διαιρούνται.",
"profile": "Επιδόσεις λήψεων",
"profileDesc": "Ισορροπία μεταξύ ταχύτητας λήψης και χρήσης πόρων.",
@@ -1974,7 +1974,7 @@
"reliability": {
"connectTimeout": "Χρονικό όριο σύνδεσης (δευτ.)",
"connectTimeoutDesc": "Χρόνος αναμονής για σύνδεση.",
- "lowestSpeedLimit": "Ελάχιστη ταχύτητα σύνδεσης (KiB/s)",
+ "lowestSpeedLimit": "Ελάχιστη ταχύτητα σύνδεσης ({{unit}})",
"lowestSpeedLimitDesc": "Αποσύνδεση κάτω από αυτή την ταχύτητα. 0 = απενεργοποίηση.",
"maxTries": "Μέγιστες προσπάθειες",
"maxTriesDesc": "Περιλαμβάνει την πρώτη προσπάθεια. 0 = χωρίς όριο.",
@@ -2786,5 +2786,23 @@
"preferences": "Ρυθμίσεις",
"quit": "Έξοδος",
"showMotrix": "Εμφάνιση Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.json
index 4677a47d..a7868181 100644
--- a/src/shared/locales/en-US.json
+++ b/src/shared/locales/en-US.json
@@ -1266,8 +1266,8 @@
"lightweightModeDesc": "Save memory when the window is closed. Downloads continue, but reopening takes longer and clears unsaved input.",
"byteUnitSystem": "Size and speed units",
"byteUnitSystemDesc": "Choose how file sizes and speeds are displayed.",
- "byteUnitDecimal": "Decimal (MB, GB · 1000)",
- "byteUnitBinary": "Binary (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Decimal ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binary ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Follow system ({{units}})",
"sidebarColor": "Accent color",
"sidebarColors": {
@@ -1503,7 +1503,7 @@
"maxConnectionPerServerDesc": "Per-file connection limit for one server.",
"split": "Max connections per file",
"splitDesc": "Connections used to download one file.",
- "minSplitSize": "Min segment size (MiB)",
+ "minSplitSize": "Min segment size ({{unit}})",
"minSplitSizeDesc": "Segments below 2× this size won’t split."
},
"reliability": {
@@ -1518,7 +1518,7 @@
"maxTriesDesc": "Includes the first attempt. 0 = unlimited.",
"retryWait": "Retry delay (s)",
"retryWaitDesc": "Wait this long before trying again.",
- "lowestSpeedLimit": "Minimum connection speed (KiB/s)",
+ "lowestSpeedLimit": "Minimum connection speed ({{unit}})",
"lowestSpeedLimitDesc": "Disconnect below this speed. 0 = disabled."
},
"disk": {
@@ -1538,7 +1538,7 @@
"modifiedTimeDesc": "For completed HTTP and FTP downloads.",
"modifiedTimeLocal": "Download time",
"modifiedTimeServer": "Time from server",
- "diskCache": "Disk cache (MiB)",
+ "diskCache": "Disk cache ({{unit}})",
"diskCacheDesc": "Memory used to buffer files before writing to disk.",
"sessionSaveInterval": "Progress save interval (s)",
"sessionSaveIntervalDesc": "Save more often to reduce progress lost after a crash."
@@ -2786,5 +2786,23 @@
},
"manageAction": "Manage",
"alreadyFavorite": "Already in favorites"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/es.json b/src/shared/locales/es.json
index f91fa56c..4c0df0f2 100644
--- a/src/shared/locales/es.json
+++ b/src/shared/locales/es.json
@@ -1280,8 +1280,8 @@
"lightweightModeDesc": "Ahorra memoria al cerrar la ventana. Las descargas continúan, pero volver a abrirla tarda más y se borran los datos sin guardar.",
"byteUnitSystem": "Unidades de tamaño y velocidad",
"byteUnitSystemDesc": "Elige cómo se muestran los tamaños de archivo y las velocidades.",
- "byteUnitDecimal": "Decimal (MB, GB · 1000)",
- "byteUnitBinary": "Binario (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Decimal ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binario ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Del sistema ({{units}})",
"sidebarColor": "Color de acento",
"sidebarColors": {
@@ -1517,7 +1517,7 @@
"maxConnectionPerServerDesc": "Límite de conexiones a un servidor por archivo.",
"split": "Máximo de conexiones por archivo",
"splitDesc": "Conexiones usadas para descargar un archivo.",
- "minSplitSize": "Tamaño mínimo de segmento (MiB)",
+ "minSplitSize": "Tamaño mínimo de segmento ({{unit}})",
"minSplitSizeDesc": "Los segmentos menores que el doble de este tamaño no se dividen."
},
"reliability": {
@@ -1532,7 +1532,7 @@
"maxTriesDesc": "Incluye el primer intento. 0 = sin límite.",
"retryWait": "Espera entre reintentos (s)",
"retryWaitDesc": "Tiempo de espera antes de volver a intentarlo.",
- "lowestSpeedLimit": "Velocidad mínima de conexión (KiB/s)",
+ "lowestSpeedLimit": "Velocidad mínima de conexión ({{unit}})",
"lowestSpeedLimitDesc": "Desconecta si la velocidad es inferior. 0 = desactivado."
},
"disk": {
@@ -1552,7 +1552,7 @@
"modifiedTimeDesc": "Para las descargas HTTP y FTP completadas.",
"modifiedTimeLocal": "Fecha de descarga",
"modifiedTimeServer": "Fecha del servidor",
- "diskCache": "Caché de disco (MiB)",
+ "diskCache": "Caché de disco ({{unit}})",
"diskCacheDesc": "Memoria usada para almacenar archivos temporalmente antes de escribirlos en el disco.",
"sessionSaveInterval": "Intervalo de guardado del progreso (s)",
"sessionSaveIntervalDesc": "Guarda con más frecuencia para reducir el progreso perdido tras un fallo."
@@ -2808,5 +2808,23 @@
},
"manageAction": "Gestionar",
"alreadyFavorite": "Ya está en favoritas"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/fa.json b/src/shared/locales/fa.json
index d9f87fb8..2649ffd4 100644
--- a/src/shared/locales/fa.json
+++ b/src/shared/locales/fa.json
@@ -1709,8 +1709,8 @@
}
},
"appearance": {
- "byteUnitBinary": "دودویی (MiB، GiB · 1024)",
- "byteUnitDecimal": "ده‌دهی (MB، GB · 1000)",
+ "byteUnitBinary": "دودویی ({{megabyte}}، {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "ده‌دهی ({{megabyte}}، {{gigabyte}} · 1000)",
"byteUnitSystem": "واحدهای اندازه و سرعت",
"byteUnitSystemDefault": "پیروی از سیستم ({{units}})",
"byteUnitSystemDesc": "نحوهٔ نمایش اندازهٔ فایل‌ها و سرعت‌ها را انتخاب کنید.",
@@ -1900,7 +1900,7 @@
"defaultDownloadFolder": "پوشهٔ دانلود پیش‌فرض",
"description": "فایل‌ها، سرعت دانلود و اتصال‌ها",
"disk": {
- "diskCache": "حافظهٔ نهان دیسک (MiB)",
+ "diskCache": "حافظهٔ نهان دیسک ({{unit}})",
"diskCacheDesc": "حافظهٔ مورد استفاده برای نگه‌داری موقت فایل‌ها پیش از نوشتن روی دیسک.",
"fileAllocation": "رزرو فضای دیسک",
"fileAllocationDesc": "پیش از دانلود فایل، فضا رزرو شود.",
@@ -1941,7 +1941,7 @@
"minimum": "حداقل اندازهٔ بخش",
"perServer": "حد هر سرور"
},
- "minSplitSize": "حداقل اندازهٔ بخش (MiB)",
+ "minSplitSize": "حداقل اندازهٔ بخش ({{unit}})",
"minSplitSizeDesc": "بخش‌های کوچک‌تر از دو برابر این اندازه تقسیم نمی‌شوند.",
"profile": "کارایی دانلود",
"profileDesc": "میان سرعت دانلود و مصرف منابع تعادل برقرار کنید.",
@@ -1974,7 +1974,7 @@
"reliability": {
"connectTimeout": "مهلت اتصال (ثانیه)",
"connectTimeoutDesc": "مدت انتظار برای برقراری اتصال.",
- "lowestSpeedLimit": "حداقل سرعت اتصال (KiB/s)",
+ "lowestSpeedLimit": "حداقل سرعت اتصال ({{unit}})",
"lowestSpeedLimitDesc": "زیر این سرعت، اتصال قطع شود. 0 = غیرفعال.",
"maxTries": "حداکثر تلاش‌ها",
"maxTriesDesc": "شامل تلاش اول است. 0 = نامحدود.",
@@ -2786,5 +2786,23 @@
"preferences": "تنظیمات",
"quit": "خروج",
"showMotrix": "نمایش Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/ثانیه"
}
}
diff --git a/src/shared/locales/fr.json b/src/shared/locales/fr.json
index 3b0a845a..7ad4553b 100644
--- a/src/shared/locales/fr.json
+++ b/src/shared/locales/fr.json
@@ -1728,8 +1728,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Binaires (MiB, GiB · 1024)",
- "byteUnitDecimal": "Décimales (MB, GB · 1000)",
+ "byteUnitBinary": "Binaires ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Décimales ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Unités de taille et de débit",
"byteUnitSystemDefault": "Suivre le système ({{units}})",
"byteUnitSystemDesc": "Choisissez les unités d’affichage des tailles de fichiers et des débits.",
@@ -1919,7 +1919,7 @@
"defaultDownloadFolder": "Dossier de téléchargement par défaut",
"description": "Fichiers, débit de téléchargement et connexions",
"disk": {
- "diskCache": "Cache disque (MiB)",
+ "diskCache": "Cache disque ({{unit}})",
"diskCacheDesc": "Mémoire utilisée pour mettre les fichiers en tampon avant leur écriture sur le disque.",
"fileAllocation": "Réserver l’espace disque",
"fileAllocationDesc": "Réserver l’espace avant de télécharger un fichier.",
@@ -1960,7 +1960,7 @@
"minimum": "Segment min.",
"perServer": "Limite par serveur"
},
- "minSplitSize": "Taille minimale des segments (MiB)",
+ "minSplitSize": "Taille minimale des segments ({{unit}})",
"minSplitSizeDesc": "Les segments inférieurs au double de cette taille ne sont pas divisés.",
"profile": "Performances de téléchargement",
"profileDesc": "Équilibrer le débit de téléchargement et l’utilisation des ressources.",
@@ -1993,7 +1993,7 @@
"reliability": {
"connectTimeout": "Délai de connexion (s)",
"connectTimeoutDesc": "Durée maximale d’attente d’une connexion.",
- "lowestSpeedLimit": "Débit minimal de connexion (KiB/s)",
+ "lowestSpeedLimit": "Débit minimal de connexion ({{unit}})",
"lowestSpeedLimitDesc": "Déconnecter en dessous de ce débit. 0 = désactivé.",
"maxTries": "Nombre maximal de tentatives",
"maxTriesDesc": "Inclut la première tentative. 0 = illimité.",
@@ -2392,7 +2392,7 @@
"restartHint": "Enregistré. Redémarrez Motrix pour que les extensions actives détectent les modifications.",
"restartNow": "Redémarrer maintenant",
"savedTitle": "Paramètres FFmpeg enregistrés",
- "stagingMB": "Limite des fichiers temporaires (MB)",
+ "stagingMB": "Limite des fichiers temporaires (Mo)",
"stagingMBDesc": "Espace pour les fichiers intermédiaires, par extension et par tâche.",
"state": {
"active": "Utilisé",
@@ -2808,5 +2808,23 @@
"preferences": "Paramètres",
"quit": "Quitter",
"showMotrix": "Afficher Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "o",
+ "kb": "ko",
+ "mb": "Mo",
+ "gb": "Go",
+ "tb": "To",
+ "pb": "Po",
+ "eb": "Eo",
+ "kib": "Kio",
+ "mib": "Mio",
+ "gib": "Gio",
+ "tib": "Tio",
+ "pib": "Pio",
+ "eib": "Eio"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/id.json b/src/shared/locales/id.json
index 8fc03596..1c49d3eb 100644
--- a/src/shared/locales/id.json
+++ b/src/shared/locales/id.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "Hemat memori saat jendela ditutup. Unduhan tetap berjalan, tetapi jendela lebih lama dibuka kembali dan isian yang belum disimpan akan dihapus.",
"byteUnitSystem": "Satuan ukuran dan kecepatan",
"byteUnitSystemDesc": "Pilih cara menampilkan ukuran berkas dan kecepatan.",
- "byteUnitDecimal": "Desimal (MB, GB · 1000)",
- "byteUnitBinary": "Biner (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Desimal ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Biner ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Ikuti sistem ({{units}})",
"sidebarColor": "Warna aksen",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "Batas koneksi per berkas untuk satu server.",
"split": "Koneksi maksimum per berkas",
"splitDesc": "Koneksi yang digunakan untuk mengunduh satu berkas.",
- "minSplitSize": "Ukuran segmen minimum (MiB)",
+ "minSplitSize": "Ukuran segmen minimum ({{unit}})",
"minSplitSizeDesc": "Segmen di bawah 2× ukuran ini tidak akan dibagi."
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "Termasuk percobaan pertama. 0 = tanpa batas.",
"retryWait": "Jeda percobaan ulang (dtk)",
"retryWaitDesc": "Tunggu selama ini sebelum mencoba lagi.",
- "lowestSpeedLimit": "Kecepatan koneksi minimum (KiB/dtk)",
+ "lowestSpeedLimit": "Kecepatan koneksi minimum ({{unit}})",
"lowestSpeedLimitDesc": "Putuskan koneksi di bawah kecepatan ini. 0 = nonaktif."
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "Untuk unduhan HTTP dan FTP yang selesai.",
"modifiedTimeLocal": "Waktu unduhan",
"modifiedTimeServer": "Waktu dari server",
- "diskCache": "Cache disk (MiB)",
+ "diskCache": "Cache disk ({{unit}})",
"diskCacheDesc": "Memori untuk menampung sementara data berkas sebelum ditulis ke disk.",
"sessionSaveInterval": "Interval penyimpanan progres (dtk)",
"sessionSaveIntervalDesc": "Simpan lebih sering untuk mengurangi progres yang hilang setelah aplikasi berhenti mendadak."
@@ -2764,5 +2764,23 @@
},
"manageAction": "Kelola",
"alreadyFavorite": "Sudah ada di favorit"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/dtk"
}
}
diff --git a/src/shared/locales/it.json b/src/shared/locales/it.json
index 39eff41c..9666aed0 100644
--- a/src/shared/locales/it.json
+++ b/src/shared/locales/it.json
@@ -1280,8 +1280,8 @@
"lightweightModeDesc": "Risparmia memoria quando la finestra è chiusa. I download continuano, ma la riapertura richiede più tempo e i dati non salvati vengono cancellati.",
"byteUnitSystem": "Unità di dimensione e velocità",
"byteUnitSystemDesc": "Scegli come visualizzare le dimensioni dei file e le velocità.",
- "byteUnitDecimal": "Decimali (MB, GB · 1000)",
- "byteUnitBinary": "Binarie (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Decimali ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binarie ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Segui il sistema ({{units}})",
"sidebarColor": "Colore principale",
"sidebarColors": {
@@ -1517,7 +1517,7 @@
"maxConnectionPerServerDesc": "Limite di connessioni per file verso un singolo server.",
"split": "Connessioni massime per file",
"splitDesc": "Connessioni usate per scaricare un file.",
- "minSplitSize": "Dimensione minima del segmento (MiB)",
+ "minSplitSize": "Dimensione minima del segmento ({{unit}})",
"minSplitSizeDesc": "I segmenti più piccoli del doppio di questa dimensione non vengono suddivisi."
},
"reliability": {
@@ -1532,7 +1532,7 @@
"maxTriesDesc": "Include il primo tentativo. 0 = illimitati.",
"retryWait": "Attesa prima di riprovare (s)",
"retryWaitDesc": "Attendi questo tempo prima di riprovare.",
- "lowestSpeedLimit": "Velocità minima della connessione (KiB/s)",
+ "lowestSpeedLimit": "Velocità minima della connessione ({{unit}})",
"lowestSpeedLimitDesc": "Interrompi la connessione sotto questa velocità. 0 = disattivato."
},
"disk": {
@@ -1552,7 +1552,7 @@
"modifiedTimeDesc": "Per i download HTTP e FTP completati.",
"modifiedTimeLocal": "Data del download",
"modifiedTimeServer": "Data dal server",
- "diskCache": "Cache disco (MiB)",
+ "diskCache": "Cache disco ({{unit}})",
"diskCacheDesc": "Memoria usata per memorizzare temporaneamente i dati dei file prima di scriverli sul disco.",
"sessionSaveInterval": "Intervallo di salvataggio dell’avanzamento (s)",
"sessionSaveIntervalDesc": "Salva più spesso per ridurre i progressi persi dopo un arresto anomalo."
@@ -2808,5 +2808,23 @@
},
"manageAction": "Gestisci",
"alreadyFavorite": "Già nei preferiti"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/ja.json b/src/shared/locales/ja.json
index 2a34a5f0..12bdcb29 100644
--- a/src/shared/locales/ja.json
+++ b/src/shared/locales/ja.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "ウインドウを閉じたときにメモリーを節約します。ダウンロードは続行されますが、再度開くときに時間がかかり、未保存の入力内容は消去されます。",
"byteUnitSystem": "サイズと速度の単位",
"byteUnitSystemDesc": "ファイルサイズと速度の表示方法を選択します。",
- "byteUnitDecimal": "10 進単位(MB、GB · 1000)",
- "byteUnitBinary": "2 進単位(MiB、GiB · 1024)",
+ "byteUnitDecimal": "10 進単位({{megabyte}}、{{gigabyte}} · 1000)",
+ "byteUnitBinary": "2 進単位({{megabyte}}、{{gigabyte}} · 1024)",
"byteUnitSystemDefault": "システムに合わせる({{units}})",
"sidebarColor": "アクセントカラー",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "1 つのサーバーに対する、ファイルごとの接続数の上限です。",
"split": "ファイルあたりの最大接続数",
"splitDesc": "1 つのファイルのダウンロードに使用する接続数です。",
- "minSplitSize": "最小セグメントサイズ(MiB)",
+ "minSplitSize": "最小セグメントサイズ({{unit}})",
"minSplitSizeDesc": "このサイズの 2 倍未満のセグメントは分割しません。"
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "初回の試行を含みます。0 = 無制限。",
"retryWait": "再試行までの待機時間(秒)",
"retryWaitDesc": "再試行するまで、この時間だけ待機します。",
- "lowestSpeedLimit": "最低接続速度(KiB/s)",
+ "lowestSpeedLimit": "最低接続速度({{unit}})",
"lowestSpeedLimitDesc": "この速度を下回ると切断します。0 = 無効。"
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "完了した HTTP および FTP ダウンロードに適用します。",
"modifiedTimeLocal": "ダウンロード日時",
"modifiedTimeServer": "サーバーの日時",
- "diskCache": "ディスクキャッシュ(MiB)",
+ "diskCache": "ディスクキャッシュ({{unit}})",
"diskCacheDesc": "ディスクに書き込む前にファイルを一時保存するためのメモリ量です。",
"sessionSaveInterval": "進捗の保存間隔(秒)",
"sessionSaveIntervalDesc": "頻繁に保存すると、クラッシュ時に失われる進捗を減らせます。"
@@ -2764,5 +2764,23 @@
},
"manageAction": "管理",
"alreadyFavorite": "お気に入りに追加済み"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/秒"
}
}
diff --git a/src/shared/locales/ko.json b/src/shared/locales/ko.json
index 33a35258..10160e6a 100644
--- a/src/shared/locales/ko.json
+++ b/src/shared/locales/ko.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "창을 닫으면 메모리를 절약합니다. 다운로드는 계속되지만 창을 다시 여는 데 더 오래 걸리며 저장하지 않은 입력 내용은 지워집니다.",
"byteUnitSystem": "크기 및 속도 단위",
"byteUnitSystemDesc": "파일 크기와 속도의 표시 방식을 선택하세요.",
- "byteUnitDecimal": "십진수(MB, GB · 1000)",
- "byteUnitBinary": "이진수(MiB, GiB · 1024)",
+ "byteUnitDecimal": "십진수({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "이진수({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "시스템 설정 따르기({{units}})",
"sidebarColor": "강조 색상",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "한 서버에서 파일 하나를 다운로드할 때의 연결 수 제한입니다.",
"split": "파일당 최대 연결 수",
"splitDesc": "파일 하나를 다운로드하는 데 사용하는 연결 수입니다.",
- "minSplitSize": "최소 세그먼트 크기(MiB)",
+ "minSplitSize": "최소 세그먼트 크기({{unit}})",
"minSplitSizeDesc": "이 크기의 2배보다 작은 세그먼트는 분할하지 않습니다."
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "첫 시도를 포함합니다. 0 = 무제한.",
"retryWait": "재시도 대기 시간(초)",
"retryWaitDesc": "다시 시도하기 전에 기다리는 시간입니다.",
- "lowestSpeedLimit": "최소 연결 속도(KiB/s)",
+ "lowestSpeedLimit": "최소 연결 속도({{unit}})",
"lowestSpeedLimitDesc": "속도가 이 값보다 낮으면 연결을 끊습니다. 0 = 사용 안 함."
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "완료된 HTTP 및 FTP 다운로드에 적용됩니다.",
"modifiedTimeLocal": "다운로드 시간",
"modifiedTimeServer": "서버에서 제공한 시간",
- "diskCache": "디스크 캐시(MiB)",
+ "diskCache": "디스크 캐시({{unit}})",
"diskCacheDesc": "디스크에 쓰기 전에 파일 데이터를 임시 보관하는 메모리입니다.",
"sessionSaveInterval": "진행 상황 저장 간격(초)",
"sessionSaveIntervalDesc": "자주 저장하면 비정상 종료 시 잃는 진행 상황을 줄일 수 있습니다."
@@ -2764,5 +2764,23 @@
},
"manageAction": "관리",
"alreadyFavorite": "이미 즐겨찾기에 있음"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/초"
}
}
diff --git a/src/shared/locales/nb.json b/src/shared/locales/nb.json
index e961cb22..570fb8a2 100644
--- a/src/shared/locales/nb.json
+++ b/src/shared/locales/nb.json
@@ -1709,8 +1709,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Binære (MiB, GiB · 1024)",
- "byteUnitDecimal": "Desimale (MB, GB · 1000)",
+ "byteUnitBinary": "Binære ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Desimale ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Enheter for størrelse og hastighet",
"byteUnitSystemDefault": "Følg systemet ({{units}})",
"byteUnitSystemDesc": "Velg hvordan filstørrelser og hastigheter vises.",
@@ -1900,7 +1900,7 @@
"defaultDownloadFolder": "Standard nedlastingsmappe",
"description": "Filer, nedlastingshastighet og tilkoblinger",
"disk": {
- "diskCache": "Diskbuffer (MiB)",
+ "diskCache": "Diskbuffer ({{unit}})",
"diskCacheDesc": "Minne som brukes til å mellomlagre filer før de skrives til disken.",
"fileAllocation": "Reserver diskplass",
"fileAllocationDesc": "Reserver plass før en fil lastes ned.",
@@ -1941,7 +1941,7 @@
"minimum": "Min. segment",
"perServer": "Grense per server"
},
- "minSplitSize": "Min. segmentstørrelse (MiB)",
+ "minSplitSize": "Min. segmentstørrelse ({{unit}})",
"minSplitSizeDesc": "Segmenter under det dobbelte av denne størrelsen deles ikke opp.",
"profile": "Nedlastingsytelse",
"profileDesc": "Balanser nedlastingshastighet og ressursbruk.",
@@ -1974,7 +1974,7 @@
"reliability": {
"connectTimeout": "Tidsgrense for tilkobling (s)",
"connectTimeoutDesc": "Hvor lenge det skal ventes på en tilkobling.",
- "lowestSpeedLimit": "Minste tilkoblingshastighet (KiB/s)",
+ "lowestSpeedLimit": "Minste tilkoblingshastighet ({{unit}})",
"lowestSpeedLimitDesc": "Koble fra under denne hastigheten. 0 = deaktivert.",
"maxTries": "Maksimalt antall forsøk",
"maxTriesDesc": "Inkluderer første forsøk. 0 = ubegrenset.",
@@ -2786,5 +2786,23 @@
"preferences": "Innstillinger",
"quit": "Avslutt",
"showMotrix": "Vis Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/nl.json b/src/shared/locales/nl.json
index 4628207d..87ac9dda 100644
--- a/src/shared/locales/nl.json
+++ b/src/shared/locales/nl.json
@@ -1709,8 +1709,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Binair (MiB, GiB · 1024)",
- "byteUnitDecimal": "Decimaal (MB, GB · 1000)",
+ "byteUnitBinary": "Binair ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Decimaal ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Eenheden voor grootte en snelheid",
"byteUnitSystemDefault": "Systeem volgen ({{units}})",
"byteUnitSystemDesc": "Kies hoe bestandsgroottes en snelheden worden weergegeven.",
@@ -1900,7 +1900,7 @@
"defaultDownloadFolder": "Standaarddownloadmap",
"description": "Bestanden, downloadsnelheid en verbindingen",
"disk": {
- "diskCache": "Schijfcache (MiB)",
+ "diskCache": "Schijfcache ({{unit}})",
"diskCacheDesc": "Geheugen voor het bufferen van bestanden voordat ze naar schijf worden geschreven.",
"fileAllocation": "Schijfruimte reserveren",
"fileAllocationDesc": "Ruimte reserveren voordat een bestand wordt gedownload.",
@@ -1941,7 +1941,7 @@
"minimum": "Min. segmentgrootte",
"perServer": "Limiet per server"
},
- "minSplitSize": "Minimale segmentgrootte (MiB)",
+ "minSplitSize": "Minimale segmentgrootte ({{unit}})",
"minSplitSizeDesc": "Segmenten kleiner dan 2× deze grootte worden niet gesplitst.",
"profile": "Downloadprestaties",
"profileDesc": "Vind een balans tussen downloadsnelheid en het gebruik van systeembronnen.",
@@ -1974,7 +1974,7 @@
"reliability": {
"connectTimeout": "Verbindingstime-out (s)",
"connectTimeoutDesc": "Hoelang op een verbinding wordt gewacht.",
- "lowestSpeedLimit": "Minimale verbindingssnelheid (KiB/s)",
+ "lowestSpeedLimit": "Minimale verbindingssnelheid ({{unit}})",
"lowestSpeedLimitDesc": "Verbreek de verbinding onder deze snelheid. 0 = uitgeschakeld.",
"maxTries": "Maximaal aantal pogingen",
"maxTriesDesc": "Inclusief de eerste poging. 0 = onbeperkt.",
@@ -2786,5 +2786,23 @@
"preferences": "Instellingen",
"quit": "Afsluiten",
"showMotrix": "Motrix tonen"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/pl.json b/src/shared/locales/pl.json
index c03a94c9..e6813113 100644
--- a/src/shared/locales/pl.json
+++ b/src/shared/locales/pl.json
@@ -1294,8 +1294,8 @@
"lightweightModeDesc": "Oszczędzaj pamięć po zamknięciu okna. Pobieranie trwa nadal, ale ponowne otwarcie zajmuje więcej czasu i usuwa niezapisane dane.",
"byteUnitSystem": "Jednostki rozmiaru i prędkości",
"byteUnitSystemDesc": "Wybierz sposób wyświetlania rozmiarów plików i prędkości.",
- "byteUnitDecimal": "Dziesiętne (MB, GB · 1000)",
- "byteUnitBinary": "Binarne (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Dziesiętne ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binarne ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Zgodnie z systemem ({{units}})",
"sidebarColor": "Kolor akcentu",
"sidebarColors": {
@@ -1531,7 +1531,7 @@
"maxConnectionPerServerDesc": "Limit połączeń jednego pliku z jednym serwerem.",
"split": "Maks. liczba połączeń na plik",
"splitDesc": "Połączenia używane do pobierania jednego pliku.",
- "minSplitSize": "Min. rozmiar segmentu (MiB)",
+ "minSplitSize": "Min. rozmiar segmentu ({{unit}})",
"minSplitSizeDesc": "Segmenty mniejsze niż dwukrotność tego rozmiaru nie są dzielone."
},
"reliability": {
@@ -1546,7 +1546,7 @@
"maxTriesDesc": "Obejmuje pierwszą próbę. 0 = bez limitu.",
"retryWait": "Odstęp między próbami (s)",
"retryWaitDesc": "Czas oczekiwania przed kolejną próbą.",
- "lowestSpeedLimit": "Minimalna prędkość połączenia (KiB/s)",
+ "lowestSpeedLimit": "Minimalna prędkość połączenia ({{unit}})",
"lowestSpeedLimitDesc": "Rozłącz poniżej tej prędkości. 0 = wyłączone."
},
"disk": {
@@ -1566,7 +1566,7 @@
"modifiedTimeDesc": "Dotyczy ukończonych pobrań HTTP i FTP.",
"modifiedTimeLocal": "Czas pobrania",
"modifiedTimeServer": "Czas z serwera",
- "diskCache": "Pamięć podręczna dysku (MiB)",
+ "diskCache": "Pamięć podręczna dysku ({{unit}})",
"diskCacheDesc": "Pamięć używana do buforowania plików przed zapisem na dysk.",
"sessionSaveInterval": "Odstęp zapisywania postępu (s)",
"sessionSaveIntervalDesc": "Zapisuj częściej, aby ograniczyć utratę postępu po awarii."
@@ -2830,5 +2830,23 @@
},
"manageAction": "Zarządzaj",
"alreadyFavorite": "Już w ulubionych"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/pt-BR.json b/src/shared/locales/pt-BR.json
index 95753825..43ea1c70 100644
--- a/src/shared/locales/pt-BR.json
+++ b/src/shared/locales/pt-BR.json
@@ -1280,8 +1280,8 @@
"lightweightModeDesc": "Economiza memória com a janela fechada. Os downloads continuam, mas reabrir demora mais e as alterações não salvas são descartadas.",
"byteUnitSystem": "Unidades de tamanho e velocidade",
"byteUnitSystemDesc": "Escolha como os tamanhos dos arquivos e as velocidades são exibidos.",
- "byteUnitDecimal": "Decimal (MB, GB · 1000)",
- "byteUnitBinary": "Binário (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Decimal ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Binário ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Seguir o sistema ({{units}})",
"sidebarColor": "Cor de destaque",
"sidebarColors": {
@@ -1517,7 +1517,7 @@
"maxConnectionPerServerDesc": "Limite de conexões por arquivo em um mesmo servidor.",
"split": "Máximo de conexões por arquivo",
"splitDesc": "Conexões usadas para baixar um arquivo.",
- "minSplitSize": "Tamanho mínimo de segmento (MiB)",
+ "minSplitSize": "Tamanho mínimo de segmento ({{unit}})",
"minSplitSizeDesc": "Segmentos menores que o dobro deste tamanho não são divididos."
},
"reliability": {
@@ -1532,7 +1532,7 @@
"maxTriesDesc": "Inclui a primeira tentativa. 0 = sem limite.",
"retryWait": "Espera entre tentativas (s)",
"retryWaitDesc": "Tempo de espera antes de tentar novamente.",
- "lowestSpeedLimit": "Velocidade mínima de conexão (KiB/s)",
+ "lowestSpeedLimit": "Velocidade mínima de conexão ({{unit}})",
"lowestSpeedLimitDesc": "Desconecta abaixo desta velocidade. 0 = desativado."
},
"disk": {
@@ -1552,7 +1552,7 @@
"modifiedTimeDesc": "Para downloads HTTP e FTP concluídos.",
"modifiedTimeLocal": "Data do download",
"modifiedTimeServer": "Data do servidor",
- "diskCache": "Cache de disco (MiB)",
+ "diskCache": "Cache de disco ({{unit}})",
"diskCacheDesc": "Memória usada para armazenar temporariamente os arquivos antes de gravá-los no disco.",
"sessionSaveInterval": "Intervalo para salvar progresso (s)",
"sessionSaveIntervalDesc": "Salve com mais frequência para reduzir a perda de progresso após uma falha."
@@ -2808,5 +2808,23 @@
},
"manageAction": "Gerenciar",
"alreadyFavorite": "Já está nos favoritos"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/ro.json b/src/shared/locales/ro.json
index 12c1bd27..5714a735 100644
--- a/src/shared/locales/ro.json
+++ b/src/shared/locales/ro.json
@@ -1728,8 +1728,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Binare (MiB, GiB · 1024)",
- "byteUnitDecimal": "Zecimale (MB, GB · 1000)",
+ "byteUnitBinary": "Binare ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Zecimale ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Unități pentru dimensiune și viteză",
"byteUnitSystemDefault": "Urmează sistemul ({{units}})",
"byteUnitSystemDesc": "Alege cum sunt afișate dimensiunile fișierelor și vitezele.",
@@ -1919,7 +1919,7 @@
"defaultDownloadFolder": "Dosar de descărcare implicit",
"description": "Fișiere, viteză de descărcare și conexiuni",
"disk": {
- "diskCache": "Cache pe disc (MiB)",
+ "diskCache": "Cache pe disc ({{unit}})",
"diskCacheDesc": "Memorie folosită pentru stocarea temporară a fișierelor înainte de scrierea pe disc.",
"fileAllocation": "Rezervă spațiu pe disc",
"fileAllocationDesc": "Rezervă spațiu înainte de descărcarea unui fișier.",
@@ -1960,7 +1960,7 @@
"minimum": "Segment minim",
"perServer": "Limită per server"
},
- "minSplitSize": "Dimensiunea minimă a segmentului (MiB)",
+ "minSplitSize": "Dimensiunea minimă a segmentului ({{unit}})",
"minSplitSizeDesc": "Segmentele mai mici decât dublul acestei dimensiuni nu sunt împărțite.",
"profile": "Performanța descărcării",
"profileDesc": "Echilibrează viteza de descărcare și consumul de resurse.",
@@ -1993,7 +1993,7 @@
"reliability": {
"connectTimeout": "Timp-limită de conectare (s)",
"connectTimeoutDesc": "Cât timp se așteaptă stabilirea conexiunii.",
- "lowestSpeedLimit": "Viteza minimă a conexiunii (KiB/s)",
+ "lowestSpeedLimit": "Viteza minimă a conexiunii ({{unit}})",
"lowestSpeedLimitDesc": "Deconectează sub această viteză. 0 = dezactivat.",
"maxTries": "Număr maxim de încercări",
"maxTriesDesc": "Include prima încercare. 0 = nelimitat.",
@@ -2392,7 +2392,7 @@
"restartHint": "Salvat. Repornește Motrix pentru ca modulele active să detecteze modificările.",
"restartNow": "Repornește acum",
"savedTitle": "Setări FFmpeg salvate",
- "stagingMB": "Limită pentru fișiere temporare (MB)",
+ "stagingMB": "Limită pentru fișiere temporare (MO)",
"stagingMBDesc": "Spațiu pentru fișiere intermediare, per modul și sarcină.",
"state": {
"active": "În uz",
@@ -2646,7 +2646,7 @@
"unsupportedInput": "Acest format de intrare nu a fost importat. Lipește un URL, date într-un format JSON acceptat sau o comandă cURL Bash acceptată.",
"unsupportedProtocol": "Acest protocol URL nu este acceptat pentru această descărcare.",
"unsupportedRequestOptions": "Antetele HTTP nu pot fi aplicate unei descărcări FTP.",
- "urlTooLong": "URL-ul depășește limita de 16 KiB."
+ "urlTooLong": "URL-ul depășește limita de 16 KiO."
},
"sourceLine": "Linia {{line}}",
"split": "Conexiuni",
@@ -2808,5 +2808,23 @@
"preferences": "Setări",
"quit": "Ieși",
"showMotrix": "Arată Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "O",
+ "kb": "kO",
+ "mb": "MO",
+ "gb": "GO",
+ "tb": "TO",
+ "pb": "PO",
+ "eb": "EO",
+ "kib": "KiO",
+ "mib": "MiO",
+ "gib": "GiO",
+ "tib": "TiO",
+ "pib": "PiO",
+ "eib": "EiO"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/ru.json b/src/shared/locales/ru.json
index 67adb0f9..53eb6509 100644
--- a/src/shared/locales/ru.json
+++ b/src/shared/locales/ru.json
@@ -1294,8 +1294,8 @@
"lightweightModeDesc": "Экономить память при закрытом окне. Загрузки продолжатся, но повторное открытие займёт больше времени и очистит несохранённые данные.",
"byteUnitSystem": "Единицы размера и скорости",
"byteUnitSystemDesc": "Выберите, как отображать размеры файлов и скорость.",
- "byteUnitDecimal": "Десятичные (MB, GB · 1000)",
- "byteUnitBinary": "Двоичные (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Десятичные ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Двоичные ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Как в системе ({{units}})",
"sidebarColor": "Цвет акцента",
"sidebarColors": {
@@ -1531,7 +1531,7 @@
"maxConnectionPerServerDesc": "Ограничение подключений к одному серверу для каждого файла.",
"split": "Максимум подключений на файл",
"splitDesc": "Подключения для загрузки одного файла.",
- "minSplitSize": "Мин. размер сегмента (МиБ)",
+ "minSplitSize": "Мин. размер сегмента ({{unit}})",
"minSplitSizeDesc": "Сегменты размером менее удвоенного указанного значения не разделяются."
},
"reliability": {
@@ -1546,7 +1546,7 @@
"maxTriesDesc": "Включая первую попытку. 0 = без ограничений.",
"retryWait": "Пауза между попытками (с)",
"retryWaitDesc": "Время ожидания перед повторной попыткой.",
- "lowestSpeedLimit": "Минимальная скорость подключения (КиБ/с)",
+ "lowestSpeedLimit": "Минимальная скорость подключения ({{unit}})",
"lowestSpeedLimitDesc": "Разрывать подключение при скорости ниже указанной. 0 = отключено."
},
"disk": {
@@ -1566,7 +1566,7 @@
"modifiedTimeDesc": "Для завершённых загрузок по HTTP и FTP.",
"modifiedTimeLocal": "Время загрузки",
"modifiedTimeServer": "Время с сервера",
- "diskCache": "Дисковый кэш (МиБ)",
+ "diskCache": "Дисковый кэш ({{unit}})",
"diskCacheDesc": "Память для буферизации файлов перед записью на диск.",
"sessionSaveInterval": "Интервал сохранения прогресса (с)",
"sessionSaveIntervalDesc": "Более частое сохранение уменьшает потери прогресса при сбое."
@@ -2830,5 +2830,23 @@
},
"manageAction": "Управление",
"alreadyFavorite": "Уже в избранном"
+ },
+ "units": {
+ "bytes": {
+ "b": "Б",
+ "kb": "КБ",
+ "mb": "МБ",
+ "gb": "ГБ",
+ "tb": "ТБ",
+ "pb": "ПБ",
+ "eb": "ЭБ",
+ "kib": "КиБ",
+ "mib": "МиБ",
+ "gib": "ГиБ",
+ "tib": "ТиБ",
+ "pib": "ПиБ",
+ "eib": "ЭиБ"
+ },
+ "perSecond": "{{value}}/с"
}
}
diff --git a/src/shared/locales/th.json b/src/shared/locales/th.json
index c00fbafb..e6384d62 100644
--- a/src/shared/locales/th.json
+++ b/src/shared/locales/th.json
@@ -1690,8 +1690,8 @@
}
},
"appearance": {
- "byteUnitBinary": "ฐานสอง (MiB, GiB · 1024)",
- "byteUnitDecimal": "ฐานสิบ (MB, GB · 1000)",
+ "byteUnitBinary": "ฐานสอง ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "ฐานสิบ ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "หน่วยขนาดและความเร็ว",
"byteUnitSystemDefault": "ตามระบบ ({{units}})",
"byteUnitSystemDesc": "เลือกรูปแบบหน่วยที่ใช้แสดงขนาดไฟล์และความเร็ว",
@@ -1881,7 +1881,7 @@
"defaultDownloadFolder": "โฟลเดอร์ดาวน์โหลดเริ่มต้น",
"description": "ไฟล์ ความเร็วดาวน์โหลด และการเชื่อมต่อ",
"disk": {
- "diskCache": "แคชดิสก์ (MiB)",
+ "diskCache": "แคชดิสก์ ({{unit}})",
"diskCacheDesc": "หน่วยความจำสำหรับพักข้อมูลไฟล์ก่อนเขียนลงดิสก์",
"fileAllocation": "จองพื้นที่ดิสก์",
"fileAllocationDesc": "จองพื้นที่ก่อนดาวน์โหลดไฟล์",
@@ -1922,7 +1922,7 @@
"minimum": "ส่วนย่อยขั้นต่ำ",
"perServer": "ขีดจำกัดต่อเซิร์ฟเวอร์"
},
- "minSplitSize": "ขนาดส่วนย่อยขั้นต่ำ (MiB)",
+ "minSplitSize": "ขนาดส่วนย่อยขั้นต่ำ ({{unit}})",
"minSplitSizeDesc": "ส่วนย่อยที่เล็กกว่าสองเท่าของขนาดนี้จะไม่ถูกแบ่ง",
"profile": "ประสิทธิภาพการดาวน์โหลด",
"profileDesc": "ปรับสมดุลระหว่างความเร็วดาวน์โหลดกับการใช้ทรัพยากร",
@@ -1955,7 +1955,7 @@
"reliability": {
"connectTimeout": "เวลารอการเชื่อมต่อ (วินาที)",
"connectTimeoutDesc": "ระยะเวลาที่รอให้เชื่อมต่อสำเร็จ",
- "lowestSpeedLimit": "ความเร็วการเชื่อมต่อขั้นต่ำ (KiB/s)",
+ "lowestSpeedLimit": "ความเร็วการเชื่อมต่อขั้นต่ำ ({{unit}})",
"lowestSpeedLimitDesc": "ตัดการเชื่อมต่อหากต่ำกว่าความเร็วนี้ 0 = ปิดใช้",
"maxTries": "จำนวนครั้งที่ลองสูงสุด",
"maxTriesDesc": "รวมครั้งแรก 0 = ไม่จำกัด",
@@ -2764,5 +2764,23 @@
"preferences": "การตั้งค่า",
"quit": "ออก",
"showMotrix": "แสดง Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/วินาที"
}
}
diff --git a/src/shared/locales/tr.json b/src/shared/locales/tr.json
index 548cd059..df5fbc8c 100644
--- a/src/shared/locales/tr.json
+++ b/src/shared/locales/tr.json
@@ -1266,8 +1266,8 @@
"lightweightModeDesc": "Pencere kapalıyken bellekten tasarruf edin. İndirmeler devam eder ancak pencerenin yeniden açılması daha uzun sürer ve kaydedilmemiş girişler temizlenir.",
"byteUnitSystem": "Boyut ve hız birimleri",
"byteUnitSystemDesc": "Dosya boyutlarının ve hızların nasıl gösterileceğini seçin.",
- "byteUnitDecimal": "Ondalık (MB, GB · 1000)",
- "byteUnitBinary": "İkili (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Ondalık ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "İkili ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Sistemi kullan ({{units}})",
"sidebarColor": "Vurgu rengi",
"sidebarColors": {
@@ -1503,7 +1503,7 @@
"maxConnectionPerServerDesc": "Bir sunucu için dosya başına bağlantı sınırı.",
"split": "Dosya başına en fazla bağlantı",
"splitDesc": "Bir dosyayı indirmek için kullanılan bağlantılar.",
- "minSplitSize": "En küçük bölüm boyutu (MiB)",
+ "minSplitSize": "En küçük bölüm boyutu ({{unit}})",
"minSplitSizeDesc": "Bu boyutun 2 katından küçük bölümler bölünmez."
},
"reliability": {
@@ -1518,7 +1518,7 @@
"maxTriesDesc": "İlk deneme dahildir. 0 = sınırsız.",
"retryWait": "Yeniden deneme gecikmesi (sn)",
"retryWaitDesc": "Yeniden denemeden önce bu süre kadar bekleyin.",
- "lowestSpeedLimit": "En düşük bağlantı hızı (KiB/s)",
+ "lowestSpeedLimit": "En düşük bağlantı hızı ({{unit}})",
"lowestSpeedLimitDesc": "Hız bu değerin altına düşerse bağlantıyı kesin. 0 = devre dışı."
},
"disk": {
@@ -1538,7 +1538,7 @@
"modifiedTimeDesc": "Tamamlanan HTTP ve FTP indirmeleri için.",
"modifiedTimeLocal": "İndirme zamanı",
"modifiedTimeServer": "Sunucudan alınan zaman",
- "diskCache": "Disk önbelleği (MiB)",
+ "diskCache": "Disk önbelleği ({{unit}})",
"diskCacheDesc": "Dosyaları diske yazmadan önce arabellekte tutmak için kullanılan bellek.",
"sessionSaveInterval": "İlerleme kaydetme aralığı (sn)",
"sessionSaveIntervalDesc": "Çökme sonrasında kaybolan ilerlemeyi azaltmak için daha sık kaydedin."
@@ -2786,5 +2786,23 @@
},
"manageAction": "Yönet",
"alreadyFavorite": "Zaten favorilerde"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/sn"
}
}
diff --git a/src/shared/locales/uk.json b/src/shared/locales/uk.json
index 233c4115..0865a92e 100644
--- a/src/shared/locales/uk.json
+++ b/src/shared/locales/uk.json
@@ -1747,8 +1747,8 @@
}
},
"appearance": {
- "byteUnitBinary": "Двійкові (MiB, GiB · 1024)",
- "byteUnitDecimal": "Десяткові (MB, GB · 1000)",
+ "byteUnitBinary": "Двійкові ({{megabyte}}, {{gigabyte}} · 1024)",
+ "byteUnitDecimal": "Десяткові ({{megabyte}}, {{gigabyte}} · 1000)",
"byteUnitSystem": "Одиниці розміру та швидкості",
"byteUnitSystemDefault": "Як у системі ({{units}})",
"byteUnitSystemDesc": "Виберіть спосіб відображення розмірів файлів і швидкості.",
@@ -1938,7 +1938,7 @@
"defaultDownloadFolder": "Типова тека завантажень",
"description": "Файли, швидкість завантаження й з'єднання",
"disk": {
- "diskCache": "Дисковий кеш (MiB)",
+ "diskCache": "Дисковий кеш ({{unit}})",
"diskCacheDesc": "Пам'ять для буферизації файлів перед записом на диск.",
"fileAllocation": "Резервувати місце на диску",
"fileAllocationDesc": "Резервувати місце перед завантаженням файлу.",
@@ -1979,7 +1979,7 @@
"minimum": "Мінімальний сегмент",
"perServer": "Ліміт на сервер"
},
- "minSplitSize": "Мінімальний розмір сегмента (MiB)",
+ "minSplitSize": "Мінімальний розмір сегмента ({{unit}})",
"minSplitSizeDesc": "Сегменти, менші за подвоєний указаний розмір, не діляться.",
"profile": "Продуктивність завантаження",
"profileDesc": "Баланс між швидкістю завантаження й використанням ресурсів.",
@@ -2012,7 +2012,7 @@
"reliability": {
"connectTimeout": "Час очікування з'єднання (с)",
"connectTimeoutDesc": "Як довго очікувати встановлення з'єднання.",
- "lowestSpeedLimit": "Мінімальна швидкість з'єднання (KiB/s)",
+ "lowestSpeedLimit": "Мінімальна швидкість з'єднання ({{unit}})",
"lowestSpeedLimitDesc": "Розривати з'єднання, якщо швидкість нижча. 0 = вимкнено.",
"maxTries": "Максимум спроб",
"maxTriesDesc": "Включно з першою спробою. 0 = без обмежень.",
@@ -2412,7 +2412,7 @@
"restartHint": "Збережено. Перезапустіть Motrix, щоб активні плагіни виявили зміни.",
"restartNow": "Перезапустити зараз",
"savedTitle": "Налаштування FFmpeg збережено",
- "stagingMB": "Ліміт тимчасових файлів (MB)",
+ "stagingMB": "Ліміт тимчасових файлів (МБ)",
"stagingMBDesc": "Місце для проміжних файлів кожного плагіна й завдання.",
"state": {
"active": "Використовується",
@@ -2666,7 +2666,7 @@
"unsupportedInput": "Цей формат вхідних даних не імпортовано. Вставте URL або підтримувані дані JSON чи команду cURL для Bash.",
"unsupportedProtocol": "Протокол цієї URL-адреси не підтримується для цього завантаження.",
"unsupportedRequestOptions": "Заголовки HTTP не можна застосувати до завантаження FTP.",
- "urlTooLong": "URL перевищує обмеження в 16 KiB."
+ "urlTooLong": "URL перевищує обмеження в 16 КіБ."
},
"sourceLine": "Рядок {{line}}",
"split": "З’єднання",
@@ -2830,5 +2830,23 @@
"preferences": "Налаштування",
"quit": "Вийти",
"showMotrix": "Показати Motrix"
+ },
+ "units": {
+ "bytes": {
+ "b": "Б",
+ "kb": "кБ",
+ "mb": "МБ",
+ "gb": "ГБ",
+ "tb": "ТБ",
+ "pb": "ПБ",
+ "eb": "ЕБ",
+ "kib": "КіБ",
+ "mib": "МіБ",
+ "gib": "ГіБ",
+ "tib": "ТіБ",
+ "pib": "ПіБ",
+ "eib": "ЕіБ"
+ },
+ "perSecond": "{{value}}/с"
}
}
diff --git a/src/shared/locales/vi.json b/src/shared/locales/vi.json
index 9bd643ea..065d99b7 100644
--- a/src/shared/locales/vi.json
+++ b/src/shared/locales/vi.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "Tiết kiệm bộ nhớ khi đóng cửa sổ. Tải xuống vẫn tiếp tục, nhưng cửa sổ mở lại lâu hơn và nội dung chưa lưu sẽ bị xóa.",
"byteUnitSystem": "Đơn vị kích thước và tốc độ",
"byteUnitSystemDesc": "Chọn cách hiển thị kích thước tệp và tốc độ.",
- "byteUnitDecimal": "Thập phân (MB, GB · 1000)",
- "byteUnitBinary": "Nhị phân (MiB, GiB · 1024)",
+ "byteUnitDecimal": "Thập phân ({{megabyte}}, {{gigabyte}} · 1000)",
+ "byteUnitBinary": "Nhị phân ({{megabyte}}, {{gigabyte}} · 1024)",
"byteUnitSystemDefault": "Theo hệ thống ({{units}})",
"sidebarColor": "Màu nhấn",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "Giới hạn kết nối cho một tệp từ một máy chủ.",
"split": "Số kết nối tối đa mỗi tệp",
"splitDesc": "Số kết nối dùng để tải xuống một tệp.",
- "minSplitSize": "Kích thước đoạn tối thiểu (MiB)",
+ "minSplitSize": "Kích thước đoạn tối thiểu ({{unit}})",
"minSplitSizeDesc": "Các đoạn nhỏ hơn 2× giá trị này sẽ không được chia nhỏ."
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "Bao gồm lần thử đầu tiên. 0 = không giới hạn.",
"retryWait": "Thời gian đợi trước khi thử lại (giây)",
"retryWaitDesc": "Đợi khoảng thời gian này trước khi thử lại.",
- "lowestSpeedLimit": "Tốc độ kết nối tối thiểu (KiB/s)",
+ "lowestSpeedLimit": "Tốc độ kết nối tối thiểu ({{unit}})",
"lowestSpeedLimitDesc": "Ngắt kết nối khi tốc độ thấp hơn giá trị này. 0 = tắt."
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "Áp dụng cho các lượt tải xuống HTTP và FTP đã hoàn tất.",
"modifiedTimeLocal": "Thời gian tải xuống",
"modifiedTimeServer": "Thời gian từ máy chủ",
- "diskCache": "Bộ nhớ đệm ổ đĩa (MiB)",
+ "diskCache": "Bộ nhớ đệm ổ đĩa ({{unit}})",
"diskCacheDesc": "Bộ nhớ dùng để đệm dữ liệu tệp trước khi ghi vào ổ đĩa.",
"sessionSaveInterval": "Khoảng thời gian lưu tiến độ (giây)",
"sessionSaveIntervalDesc": "Lưu thường xuyên hơn để giảm lượng tiến độ bị mất khi ứng dụng gặp sự cố."
@@ -2764,5 +2764,23 @@
},
"manageAction": "Quản lý",
"alreadyFavorite": "Đã có trong mục yêu thích"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/giây"
}
}
diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.json
index 4ea47475..b779c88b 100644
--- a/src/shared/locales/zh-CN.json
+++ b/src/shared/locales/zh-CN.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "关闭窗口后节省内存,下载不受影响。重新打开稍慢,未保存的输入会清除。",
"byteUnitSystem": "大小和速度单位",
"byteUnitSystemDesc": "选择文件大小和速度的显示单位。",
- "byteUnitDecimal": "十进制(MB、GB · 1000)",
- "byteUnitBinary": "二进制(MiB、GiB · 1024)",
+ "byteUnitDecimal": "十进制({{megabyte}}、{{gigabyte}} · 1000)",
+ "byteUnitBinary": "二进制({{megabyte}}、{{gigabyte}} · 1024)",
"byteUnitSystemDefault": "跟随系统({{units}})",
"sidebarColor": "主题色",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "每个文件对同一服务器的连接上限。",
"split": "单文件最大连接数",
"splitDesc": "下载单个文件时使用的连接数。",
- "minSplitSize": "最小分段大小(MiB)",
+ "minSplitSize": "最小分段大小({{unit}})",
"minSplitSizeDesc": "小于此值两倍的分段不再拆分。"
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "包含首次尝试;0 表示不限次数。",
"retryWait": "重试间隔(秒)",
"retryWaitDesc": "失败后等多久再试。",
- "lowestSpeedLimit": "最低连接速度(KiB/s)",
+ "lowestSpeedLimit": "最低连接速度({{unit}})",
"lowestSpeedLimitDesc": "低于此速度时断开连接;0 表示关闭。"
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "适用于下载完成的 HTTP 和 FTP 文件。",
"modifiedTimeLocal": "下载时间",
"modifiedTimeServer": "服务器提供的时间",
- "diskCache": "磁盘缓存 (MiB)",
+ "diskCache": "磁盘缓存 ({{unit}})",
"diskCacheDesc": "写入磁盘前暂存文件数据的内存。",
"sessionSaveInterval": "进度保存间隔(秒)",
"sessionSaveIntervalDesc": "保存越频繁,意外退出时丢失的进度越少。"
@@ -2764,5 +2764,23 @@
},
"manageAction": "管理",
"alreadyFavorite": "已在常用目录中"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/s"
}
}
diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.json
index 515e49fa..456d12a3 100644
--- a/src/shared/locales/zh-TW.json
+++ b/src/shared/locales/zh-TW.json
@@ -1252,8 +1252,8 @@
"lightweightModeDesc": "關閉視窗後節省記憶體,下載不受影響。重新開啟稍慢,未儲存的輸入會清除。",
"byteUnitSystem": "大小與速度單位",
"byteUnitSystemDesc": "選擇檔案大小和速度的顯示單位。",
- "byteUnitDecimal": "十進位(MB、GB · 1000)",
- "byteUnitBinary": "二進位(MiB、GiB · 1024)",
+ "byteUnitDecimal": "十進位({{megabyte}}、{{gigabyte}} · 1000)",
+ "byteUnitBinary": "二進位({{megabyte}}、{{gigabyte}} · 1024)",
"byteUnitSystemDefault": "跟隨系統({{units}})",
"sidebarColor": "主題色",
"sidebarColors": {
@@ -1489,7 +1489,7 @@
"maxConnectionPerServerDesc": "每個檔案對同一伺服器的連線上限。",
"split": "單一檔案連線數上限",
"splitDesc": "下載單一檔案時使用的連線數。",
- "minSplitSize": "最小分段大小(MiB)",
+ "minSplitSize": "最小分段大小({{unit}})",
"minSplitSizeDesc": "小於此值兩倍的分段不再拆分。"
},
"reliability": {
@@ -1504,7 +1504,7 @@
"maxTriesDesc": "包含首次嘗試;0 表示不限次數。",
"retryWait": "重試間隔(秒)",
"retryWaitDesc": "失敗後等多久再試。",
- "lowestSpeedLimit": "最低連線速度(KiB/s)",
+ "lowestSpeedLimit": "最低連線速度({{unit}})",
"lowestSpeedLimitDesc": "低於此速度時中斷連線;0 表示關閉。"
},
"disk": {
@@ -1524,7 +1524,7 @@
"modifiedTimeDesc": "適用於下載完成的 HTTP 和 FTP 檔案。",
"modifiedTimeLocal": "下載時間",
"modifiedTimeServer": "伺服器提供的時間",
- "diskCache": "磁碟快取 (MiB)",
+ "diskCache": "磁碟快取 ({{unit}})",
"diskCacheDesc": "寫入磁碟前暫存檔案資料的記憶體。",
"sessionSaveInterval": "進度儲存間隔(秒)",
"sessionSaveIntervalDesc": "儲存越頻繁,意外退出時遺失的進度越少。"
@@ -2764,5 +2764,23 @@
},
"manageAction": "管理",
"alreadyFavorite": "已在常用目錄中"
+ },
+ "units": {
+ "bytes": {
+ "b": "B",
+ "kb": "KB",
+ "mb": "MB",
+ "gb": "GB",
+ "tb": "TB",
+ "pb": "PB",
+ "eb": "EB",
+ "kib": "KiB",
+ "mib": "MiB",
+ "gib": "GiB",
+ "tib": "TiB",
+ "pib": "PiB",
+ "eib": "EiB"
+ },
+ "perSecond": "{{value}}/秒"
}
}
diff --git a/src/shared/utils/localized-byte-format.test.ts b/src/shared/utils/localized-byte-format.test.ts
new file mode 100644
index 00000000..529c42ea
--- /dev/null
+++ b/src/shared/utils/localized-byte-format.test.ts
@@ -0,0 +1,82 @@
+import { SUPPORTED_LOCALE_CODES } from '@shared/constants/locales'
+import { I18N_RESOURCES } from '@shared/i18n-resources'
+import type { ByteUnitSystem } from '@shared/schemas/byte-unit-system'
+import { createInstance } from 'i18next'
+import { beforeAll, describe, expect, it } from 'vitest'
+import { createLocalizedByteFormatter } from './localized-byte-format'
+
+const i18n = createInstance()
+beforeAll(async () => {
+ await i18n.init({
+ resources: I18N_RESOURCES,
+ lng: 'en-US',
+ interpolation: { escapeValue: false },
+ })
+})
+const formatter = (locale: string, system: ByteUnitSystem = 'binary') =>
+ createLocalizedByteFormatter(system, locale, i18n.getFixedT(locale))
+
+describe('localized information units', () => {
+ it.each([
+ ['en-US', '1.50 MiB/s', '1 MiB/s'],
+ ['fr', '1,50 Mio/s', '1 Mio/s'],
+ ['ru', '1,50 МиБ/с', '1 МиБ/с'],
+ ['uk', '1,50 МіБ/с', '1 МіБ/с'],
+ ['ro', '1,50 MiO/s', '1 MiO/s'],
+ ['ja', '1.50 MiB/秒', '1 MiB/秒'],
+ ['zh-CN', '1.50 MiB/s', '1 MiB/s'],
+ ['ar-u-nu-arab', '١٫٥٠ MiB/ث', '١ MiB/ث'],
+ ])(
+ 'formats sizes and speeds in %s without changing the base',
+ (locale, size, limit) => {
+ const f = formatter(locale)
+ expect(f.formatBytes(1_572_864)).toBe(
+ size.slice(0, size.lastIndexOf('/'))
+ )
+ expect(f.formatSpeed(1_572_864)).toBe(
+ size.replace(/50|٥٠/, (fraction) => fraction[0])
+ )
+ expect(f.formatSpeedLimit(1_048_576)).toBe(limit)
+ expect(f.formatByteUnit('MiB', true)).toBe(
+ limit.slice(limit.indexOf(' ') + 1)
+ )
+ }
+ )
+
+ it('keeps decimal and binary selection independent of language', () => {
+ expect(formatter('fr', 'decimal').formatBytes(1_048_576)).toBe('1,05 Mo')
+ expect(formatter('fr', 'binary').formatBytes(1_048_576)).toBe('1,00 Mio')
+ expect(formatter('fr', 'decimal').formatByteQuantity(16, 'MiB')).toBe(
+ '16 Mio'
+ )
+ })
+
+ it('preserves exact large integers, trailing precision, and rounding promotion', () => {
+ const f = formatter('fr', 'decimal')
+ const huge = '1234567890123456789012345678901234567890'
+ expect(f.formatBytes(huge)).toBe('1234567890123456789012,35 Eo')
+ expect(f.formatBytes(BigInt(huge))).toBe(f.formatBytes(huge))
+ expect(f.formatBytes(999_995, { decimals: 2 })).toBe('1,00 Mo')
+ expect(f.formatSpeed(1_000_000)).toBe('1,0 Mo/s')
+ expect(f.formatSpeedLimit(1_500_000)).toBe('1,5 Mo/s')
+ expect(f.formatBytes(-1)).toBe('0 o')
+ })
+
+ it.each(SUPPORTED_LOCALE_CODES)(
+ 'has usable, distinct SI and IEC labels in %s',
+ (locale) => {
+ const f = formatter(locale)
+ for (const [decimal, binary] of [
+ ['KB', 'KiB'],
+ ['MB', 'MiB'],
+ ['GB', 'GiB'],
+ ['TB', 'TiB'],
+ ['PB', 'PiB'],
+ ['EB', 'EiB'],
+ ] as const) {
+ expect(f.formatByteUnit(decimal)).not.toBe(f.formatByteUnit(binary))
+ expect(f.formatByteUnit(binary, true)).not.toMatch(/units\.|\{\{/)
+ }
+ }
+ )
+})
diff --git a/src/shared/utils/localized-byte-format.ts b/src/shared/utils/localized-byte-format.ts
new file mode 100644
index 00000000..075cbdb8
--- /dev/null
+++ b/src/shared/utils/localized-byte-format.ts
@@ -0,0 +1,59 @@
+import type { ByteUnitSystem } from '@shared/schemas/byte-unit-system'
+import type { TFunction } from 'i18next'
+import {
+ type ByteFormatOptions,
+ type ByteValue,
+ type FormattedByteParts,
+ formatByteParts,
+} from './format-bytes'
+
+type ByteUnit = FormattedByteParts['unit']
+
+/** Localize presentation only; unit selection and rounding stay byte-exact. */
+export function createLocalizedByteFormatter(
+ unitSystem: ByteUnitSystem,
+ locale: string,
+ t: TFunction
+) {
+ const integers = new Intl.NumberFormat(locale, { useGrouping: false })
+ const separator =
+ integers.formatToParts(1.1).find((part) => part.type === 'decimal')
+ ?.value ?? '.'
+ const digits = Array.from({ length: 10 }, (_, digit) =>
+ integers.format(digit)
+ )
+ const localizeNumber = (number: string) => {
+ const [integer, fraction] = number.split('.')
+ const whole = integers.format(BigInt(integer))
+ return fraction === undefined
+ ? whole
+ : `${whole}${separator}${fraction.replace(/\d/g, (digit) => digits[Number(digit)])}`
+ }
+ const perSecond = (value: string) => t('units.perSecond', { value })
+ const formatByteUnit = (unit: ByteUnit, speed = false) => {
+ const label = t(`units.bytes.${unit.toLowerCase()}`)
+ return speed ? perSecond(label) : label
+ }
+ const formatByteQuantity = (number: string | number, unit: ByteUnit) =>
+ `${localizeNumber(String(number))} ${formatByteUnit(unit)}`
+ const formatBytes = (bytes: ByteValue, options?: ByteFormatOptions) => {
+ const parts = formatByteParts(bytes, { unitSystem, ...options })
+ return formatByteQuantity(parts.number, parts.unit)
+ }
+ const formatSpeed = (bytes: ByteValue) =>
+ perSecond(formatBytes(bytes, { decimals: 1 }))
+ const formatSpeedLimit = (bytes: ByteValue) => {
+ const parts = formatByteParts(bytes, { unitSystem, decimals: 1 })
+ return perSecond(
+ formatByteQuantity(parts.number.replace(/\.0$/, ''), parts.unit)
+ )
+ }
+ return {
+ unitSystem,
+ formatBytes,
+ formatSpeed,
+ formatSpeedLimit,
+ formatByteUnit,
+ formatByteQuantity,
+ }
+}