Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

refactor(i18n): rename open_nami translation keys to nami across all 12 locales and UI

IGECT03d287744512
diff --git a/src/components/nami/DownloadManager.svelte b/src/components/nami/DownloadManager.svelte
index f19fc8a1..21dd5861 100644
--- a/src/components/nami/DownloadManager.svelte
+++ b/src/components/nami/DownloadManager.svelte
@@ -182,11 +182,11 @@
}
const CONTENT_TYPES: Array<{ key: string; labelKey: string }> = [
- { key: 'all', labelKey: 'open_nami.content_all' },
- { key: 'photos', labelKey: 'open_nami.content_photos' },
- { key: 'videos', labelKey: 'open_nami.content_videos' },
- { key: 'stories', labelKey: 'open_nami.content_stories' },
- { key: 'highlights', labelKey: 'open_nami.content_highlights' },
+ { key: 'all', labelKey: 'nami.content_all' },
+ { key: 'photos', labelKey: 'nami.content_photos' },
+ { key: 'videos', labelKey: 'nami.content_videos' },
+ { key: 'stories', labelKey: 'nami.content_stories' },
+ { key: 'highlights', labelKey: 'nami.content_highlights' },
];
</script>
@@ -210,7 +210,7 @@
<span>{namiStatusMessage(status, tr)}</span>
{#if statusDetail}
<details class="dl-alert-details">
- <summary>{$t('open_nami.view_log')}</summary>
+ <summary>{$t('nami.view_log')}</summary>
<pre>{statusDetail}</pre>
</details>
{/if}
@@ -221,7 +221,7 @@
</div>
{#if !url.trim() && savedProfiles.length > 0}
- <div class="dl-quicklist" role="group" aria-label={$t('open_nami.saved_profiles_aria')}>
+ <div class="dl-quicklist" role="group" aria-label={$t('nami.saved_profiles_aria')}>
{#each savedProfiles as profile (profile.url)}
<button
type="button"
@@ -240,9 +240,9 @@
</div>
{:else if !url.trim() && savedProfiles.length === 0}
<p class="dl-hint">
- {$t('open_nami.no_saved_profiles')}
+ {$t('nami.no_saved_profiles')}
<button type="button" class="dl-link" onclick={() => onSwitchToProfiles?.()}
- >{$t('open_nami.add_one')}</button
+ >{$t('nami.add_one')}</button
>
</p>
{/if}
@@ -256,7 +256,7 @@
</svg>
<input
id="profile-url"
- aria-label={$t('open_nami.profile_url_aria')}
+ aria-label={$t('nami.profile_url_aria')}
type="text"
bind:value={url}
oninput={handleUrlInput}
@@ -268,7 +268,7 @@
</div>
</div>
- <div class="dl-segmented" role="group" aria-label={$t('open_nami.content_type_aria')}>
+ <div class="dl-segmented" role="group" aria-label={$t('nami.content_type_aria')}>
{#each CONTENT_TYPES as type (type.key)}
<button
type="button"
@@ -279,7 +279,7 @@
}}
disabled={downloading || ((type.key === 'stories' || type.key === 'highlights') && !isInstagram)}
title={(type.key === 'stories' || type.key === 'highlights') && !isInstagram
- ? $t('open_nami.instagram_only')
+ ? $t('nami.instagram_only')
: ''}
aria-pressed={contentType === type.key}
>
@@ -290,27 +290,27 @@
{#if missingOutputDir}
<p class="dl-warning" role="alert">
- {$t('open_nami.missing_output_dir_prefix')}
+ {$t('nami.missing_output_dir_prefix')}
<button type="button" class="dl-link" onclick={() => onSwitchToSettings?.()}>{$t('nav.settings')}</button>
- {$t('open_nami.missing_output_dir_suffix')}
+ {$t('nami.missing_output_dir_suffix')}
</p>
{/if}
{#if needsCookiesWarning}
<p class="dl-warning" role="alert">
- {$t('open_nami.cookies_required_prefix')}
+ {$t('nami.cookies_required_prefix')}
<button type="button" class="dl-link" onclick={() => onSwitchToSettings?.()}>{$t('nav.settings')}</button>.
</p>
{/if}
{#if platformMismatch}
- <p class="dl-warning" role="alert">{$t('open_nami.stories_instagram_only')}</p>
+ <p class="dl-warning" role="alert">{$t('nami.stories_instagram_only')}</p>
{/if}
<div class="dl-actions">
{#if downloading}
<button class="dl-btn stop" onclick={handleStop} disabled={cancelling}>
- {cancelling ? $t('open_nami.cancelling') : $t('open_nami.stop_download')}
+ {cancelling ? $t('nami.cancelling') : $t('nami.stop_download')}
</button>
{:else}
<button
@@ -318,7 +318,7 @@
onclick={startDownload}
disabled={!getDownloadUrl() || missingOutputDir || needsCookiesWarning || platformMismatch || (depStatus !== null && !depStatus.ok)}
>
- {$t('open_nami.start_download')}
+ {$t('nami.start_download')}
</button>
{/if}
</div>
@@ -340,19 +340,19 @@
/>
{/if}
<text x="52" y="49" text-anchor="middle" class="dl-ring-count">{filesDownloaded}</text>
- <text x="52" y="66" text-anchor="middle" class="dl-ring-label">{$t('open_nami.files_label')}</text>
+ <text x="52" y="66" text-anchor="middle" class="dl-ring-label">{$t('nami.files_label')}</text>
</svg>
<p class="dl-progress-stage">
{#if stageTotal && stageTotal > 1}
- {$t('open_nami.stage_of', {
+ {$t('nami.stage_of', {
index: stageIndex ?? 1,
total: stageTotal,
stage: namiStageLabel(stage, tr)
})}
{:else}
{stage
- ? $t('open_nami.downloading_stage', { stage: namiStageLabel(stage, tr) })
- : $t('open_nami.downloading')}
+ ? $t('nami.downloading_stage', { stage: namiStageLabel(stage, tr) })
+ : $t('nami.downloading')}
{/if}
</p>
{#if lastMessage}
diff --git a/src/components/nami/ProfileManager.svelte b/src/components/nami/ProfileManager.svelte
index 4bd69f81..a641a8e5 100644
--- a/src/components/nami/ProfileManager.svelte
+++ b/src/components/nami/ProfileManager.svelte
@@ -36,7 +36,7 @@
profiles = result;
} catch (err) {
if (thisRequest !== requestId) return;
- error = $t('open_nami.failed_to_load_profiles') as string;
+ error = $t('nami.failed_to_load_profiles') as string;
console.error(err);
} finally {
if (thisRequest === requestId) {
@@ -54,7 +54,7 @@
async function addProfile() {
const trimmedUrl = newUrl.trim();
if (!trimmedUrl) {
- error = $t('open_nami.enter_url_or_username') as string;
+ error = $t('nami.enter_url_or_username') as string;
return;
}
error = '';
@@ -63,7 +63,7 @@
newUrl = '';
await loadPlatformProfiles();
} catch (err) {
- error = errorMessage(err, $t('open_nami.failed_to_add_profile') as string);
+ error = errorMessage(err, $t('nami.failed_to_add_profile') as string);
console.error(err);
}
}
@@ -86,7 +86,7 @@
await deleteProfile(activePlatform, url);
await loadPlatformProfiles();
} catch (err) {
- error = errorMessage(err, $t('open_nami.failed_to_delete_profile') as string);
+ error = errorMessage(err, $t('nami.failed_to_delete_profile') as string);
console.error('Failed to delete profile:', err);
}
}
@@ -109,7 +109,7 @@
</script>
<div class="pm">
- <div class="pm-segmented" role="tablist" aria-label={$t('open_nami.platform_aria')}>
+ <div class="pm-segmented" role="tablist" aria-label={$t('nami.platform_aria')}>
{#each platforms as platform (platform.key)}
<button
type="button"
@@ -138,22 +138,22 @@
id="profile-url"
type="text"
bind:value={newUrl}
- placeholder={$t('open_nami.profile_placeholder')}
+ placeholder={$t('nami.profile_placeholder')}
onkeydown={(e) => e.key === 'Enter' && addProfile()}
autocomplete="off"
spellcheck="false"
- aria-label={$t('open_nami.profile_url_aria')}
+ aria-label={$t('nami.profile_url_aria')}
/>
<button type="button" class="pm-add-btn" onclick={addProfile} disabled={!newUrl.trim() || loading}>
- {$t('open_nami.add')}
+ {$t('nami.add')}
</button>
</div>
</div>
{#if loading}
- <p class="pm-empty">{$t('open_nami.loading_profiles')}</p>
+ <p class="pm-empty">{$t('nami.loading_profiles')}</p>
{:else if profiles.length === 0}
- <p class="pm-empty">{$t('open_nami.no_profiles_yet')}</p>
+ <p class="pm-empty">{$t('nami.no_profiles_yet')}</p>
{:else}
<div class="pm-group">
{#each profiles as profile (profile.url)}
@@ -171,18 +171,18 @@
type="button"
class="pm-download-btn"
onclick={() => onSelectProfileForDownload?.(profile.url)}
- aria-label={$t('open_nami.download_with', { name: profile.username || profile.url })}
+ aria-label={$t('nami.download_with', { name: profile.username || profile.url })}
>
- {$t('open_nami.download')}
+ {$t('nami.download')}
</button>
{/if}
<button
type="button"
class="pm-remove"
onclick={() => promptDelete(profile.url)}
- aria-label={$t('open_nami.remove_profile_aria', { name: profile.username || profile.url })}
+ aria-label={$t('nami.remove_profile_aria', { name: profile.username || profile.url })}
>
- {$t('open_nami.remove')}
+ {$t('nami.remove')}
</button>
</div>
</div>
@@ -193,11 +193,11 @@
<dialog bind:this={dialogEl} class="pm-dialog" onclose={() => (confirmDeleteUrl = null)}>
<div class="pm-dialog-content">
- <p class="pm-dialog-title" id="pm-confirm-title">{$t('open_nami.delete_profile_title')}</p>
+ <p class="pm-dialog-title" id="pm-confirm-title">{$t('nami.delete_profile_title')}</p>
<p class="pm-dialog-url">{confirmDeleteUrl}</p>
<div class="pm-dialog-actions">
<button type="button" class="pm-dialog-btn" onclick={cancelDelete}>{$t('common.cancel')}</button>
- <button type="button" class="pm-dialog-btn danger" onclick={confirmDelete}>{$t('open_nami.delete')}</button>
+ <button type="button" class="pm-dialog-btn danger" onclick={confirmDelete}>{$t('nami.delete')}</button>
</div>
</div>
</dialog>
diff --git a/src/components/nami/SettingsManager.svelte b/src/components/nami/SettingsManager.svelte
index e36787c0..271d0b90 100644
--- a/src/components/nami/SettingsManager.svelte
+++ b/src/components/nami/SettingsManager.svelte
@@ -24,7 +24,7 @@
async function browseOutputDir() {
try {
- const selected = await open({ directory: true, multiple: false, title: $t('open_nami.select_output_dir_title') });
+ const selected = await open({ directory: true, multiple: false, title: $t('nami.select_output_dir_title') });
if (selected && typeof selected === 'string') outputDir = selected;
} catch (err) {
console.error('Failed to open directory dialog:', err);
@@ -33,7 +33,7 @@
async function browseCookiesFile() {
try {
- const selected = await open({ directory: false, multiple: false, title: $t('open_nami.select_cookies_title') });
+ const selected = await open({ directory: false, multiple: false, title: $t('nami.select_cookies_title') });
if (selected && typeof selected === 'string') cookiesFile = selected;
} catch (err) {
console.error('Failed to open file dialog:', err);
@@ -55,15 +55,15 @@
await saveSettings(outputDir, cookiesFile);
outputDir = getOutputDir();
cookiesFile = getCookiesFile();
- saveStatus = 'open_nami.settings_saved';
+ saveStatus = 'nami.settings_saved';
saveStatusType = 'success';
statusTimer = setTimeout(() => {
- if (saveStatus === 'open_nami.settings_saved') saveStatus = '';
+ if (saveStatus === 'nami.settings_saved') saveStatus = '';
statusTimer = null;
}, 2500);
} catch (error) {
console.error('Failed to save settings:', error);
- saveStatus = 'open_nami.failed_to_save_settings';
+ saveStatus = 'nami.failed_to_save_settings';
saveStatusType = 'error';
} finally {
saving = false;
@@ -89,17 +89,17 @@
<svg class="sm-icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round" aria-hidden="true">
<path d="M2 4.6a1 1 0 0 1 1-1h2.6l1.1 1.4H13a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z" />
</svg>
- <span class="sm-label">{$t('open_nami.output_label')}</span>
+ <span class="sm-label">{$t('nami.output_label')}</span>
<input
id="output-dir"
- aria-label={$t('open_nami.output_dir_aria')}
+ aria-label={$t('nami.output_dir_aria')}
type="text"
bind:value={outputDir}
- placeholder={$t('open_nami.choose_folder_placeholder')}
+ placeholder={$t('nami.choose_folder_placeholder')}
autocomplete="off"
spellcheck="false"
/>
- <button type="button" class="sm-choose-btn" onclick={browseOutputDir}>{$t('open_nami.choose')}</button>
+ <button type="button" class="sm-choose-btn" onclick={browseOutputDir}>{$t('nami.choose')}</button>
</div>
<div class="sm-row">
@@ -107,24 +107,24 @@
<path d="M4.3 2h4.4L12 5.3V13a.7.7 0 0 1-.7.7H4.3a.7.7 0 0 1-.7-.7V2.7A.7.7 0 0 1 4.3 2Z" />
<path d="M8.7 2v3.3H12" />
</svg>
- <span class="sm-label">{$t('open_nami.cookies_label')}</span>
+ <span class="sm-label">{$t('nami.cookies_label')}</span>
<input
id="cookies-file"
- aria-label={$t('open_nami.cookies_file_aria')}
+ aria-label={$t('nami.cookies_file_aria')}
type="text"
bind:value={cookiesFile}
- placeholder={$t('open_nami.choose_cookies_placeholder')}
+ placeholder={$t('nami.choose_cookies_placeholder')}
autocomplete="off"
spellcheck="false"
/>
{#if cookiesFile}
- <button type="button" class="sm-clear-btn" onclick={clearCookies} title={$t('open_nami.clear_cookies_file')}>×</button>
+ <button type="button" class="sm-clear-btn" onclick={clearCookies} title={$t('nami.clear_cookies_file')}>×</button>
{/if}
- <button type="button" class="sm-choose-btn" onclick={browseCookiesFile}>{$t('open_nami.choose')}</button>
+ <button type="button" class="sm-choose-btn" onclick={browseCookiesFile}>{$t('nami.choose')}</button>
</div>
</div>
- <p class="sm-hint">{$t('open_nami.cookies_hint')}</p>
+ <p class="sm-hint">{$t('nami.cookies_hint')}</p>
<div class="sm-actions">
<button
@@ -133,7 +133,7 @@
onclick={handleSave}
disabled={saving || !isDirty}
>
- {saving ? $t('open_nami.saving') : $t('open_nami.save_settings')}
+ {saving ? $t('nami.saving') : $t('nami.save_settings')}
</button>
</div>
</div>
diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.json
index 72d47de7..b97635ba 100644
--- a/src/lib/i18n/el.json
+++ b/src/lib/i18n/el.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index 0ed57b5b..959c7781 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -5310,7 +5310,7 @@
"speed_unit_mb": "MB/s",
"decimal_separator": "."
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.json
index 73e236de..624843b4 100644
--- a/src/lib/i18n/es.json
+++ b/src/lib/i18n/es.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/fa.json b/src/lib/i18n/fa.json
index be125104..49fb2633 100644
--- a/src/lib/i18n/fa.json
+++ b/src/lib/i18n/fa.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.json
index 371e561b..7e961084 100644
--- a/src/lib/i18n/fr.json
+++ b/src/lib/i18n/fr.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.json
index eb6c3926..5d5b08ce 100644
--- a/src/lib/i18n/it.json
+++ b/src/lib/i18n/it.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.json
index fb6e4260..edd15619 100644
--- a/src/lib/i18n/ja.json
+++ b/src/lib/i18n/ja.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.ts
index 9e5cd888..f041349f 100644
--- a/src/lib/i18n/keys.ts
+++ b/src/lib/i18n/keys.ts
@@ -544,6 +544,81 @@ export type TranslationKeys =
| 'misc.hub.tracking_desc'
| 'misc.hub.tracking_title'
+ | 'nami.add'
+ | 'nami.add_one'
+ | 'nami.cancelling'
+ | 'nami.choose'
+ | 'nami.choose_cookies_placeholder'
+ | 'nami.choose_folder_placeholder'
+ | 'nami.clear_cookies_file'
+ | 'nami.content_all'
+ | 'nami.content_highlights'
+ | 'nami.content_photos'
+ | 'nami.content_stories'
+ | 'nami.content_type_aria'
+ | 'nami.content_videos'
+ | 'nami.cookies_file_aria'
+ | 'nami.cookies_hint'
+ | 'nami.cookies_label'
+ | 'nami.cookies_required_prefix'
+ | 'nami.delete'
+ | 'nami.delete_profile_title'
+ | 'nami.desc_download'
+ | 'nami.desc_profiles'
+ | 'nami.desc_settings'
+ | 'nami.download'
+ | 'nami.download_with'
+ | 'nami.downloading'
+ | 'nami.downloading_stage'
+ | 'nami.engine_missing'
+ | 'nami.engines_ready'
+ | 'nami.enter_url_or_username'
+ | 'nami.failed_to_add_profile'
+ | 'nami.failed_to_delete_profile'
+ | 'nami.failed_to_load_profiles'
+ | 'nami.failed_to_save_settings'
+ | 'nami.files_label'
+ | 'nami.instagram_only'
+ | 'nami.loading_profiles'
+ | 'nami.missing_output_dir_prefix'
+ | 'nami.missing_output_dir_suffix'
+ | 'nami.no_profiles_yet'
+ | 'nami.no_saved_profiles'
+ | 'nami.output_dir_aria'
+ | 'nami.output_label'
+ | 'nami.page_title'
+ | 'nami.platform_aria'
+ | 'nami.profile_placeholder'
+ | 'nami.profile_url_aria'
+ | 'nami.remove'
+ | 'nami.remove_profile_aria'
+ | 'nami.save_settings'
+ | 'nami.saved_profiles_aria'
+ | 'nami.saving'
+ | 'nami.sections_aria'
+ | 'nami.select_cookies_title'
+ | 'nami.select_output_dir_title'
+ | 'nami.settings_saved'
+ | 'nami.stage_highlights'
+ | 'nami.stage_of'
+ | 'nami.stage_photos'
+ | 'nami.stage_setup'
+ | 'nami.stage_stories'
+ | 'nami.stage_videos'
+ | 'nami.start_download'
+ | 'nami.status_cancelled'
+ | 'nami.status_downloaded'
+ | 'nami.status_provisioning'
+ | 'nami.status_starting'
+ | 'nami.status_success'
+ | 'nami.status_switching_engine'
+ | 'nami.stop_download'
+ | 'nami.stories_instagram_only'
+ | 'nami.tab_download'
+ | 'nami.tab_profiles'
+ | 'nami.tab_settings'
+ | 'nami.view_log'
+
| 'nav.about'
| 'nav.collapse_plugins'
| 'nav.downloads'
@@ -723,81 +798,6 @@ export type TranslationKeys =
| 'onboarding.welcome_desc'
| 'onboarding.welcome_title'
- | 'open_nami.add'
- | 'open_nami.add_one'
- | 'open_nami.cancelling'
- | 'open_nami.choose'
- | 'open_nami.choose_cookies_placeholder'
- | 'open_nami.choose_folder_placeholder'
- | 'open_nami.clear_cookies_file'
- | 'open_nami.content_all'
- | 'open_nami.content_highlights'
- | 'open_nami.content_photos'
- | 'open_nami.content_stories'
- | 'open_nami.content_type_aria'
- | 'open_nami.content_videos'
- | 'open_nami.cookies_file_aria'
- | 'open_nami.cookies_hint'
- | 'open_nami.cookies_label'
- | 'open_nami.cookies_required_prefix'
- | 'open_nami.delete'
- | 'open_nami.delete_profile_title'
- | 'open_nami.desc_download'
- | 'open_nami.desc_profiles'
- | 'open_nami.desc_settings'
- | 'open_nami.download'
- | 'open_nami.download_with'
- | 'open_nami.downloading'
- | 'open_nami.downloading_stage'
- | 'open_nami.engine_missing'
- | 'open_nami.engines_ready'
- | 'open_nami.enter_url_or_username'
- | 'open_nami.failed_to_add_profile'
- | 'open_nami.failed_to_delete_profile'
- | 'open_nami.failed_to_load_profiles'
- | 'open_nami.failed_to_save_settings'
- | 'open_nami.files_label'
- | 'open_nami.instagram_only'
- | 'open_nami.loading_profiles'
- | 'open_nami.missing_output_dir_prefix'
- | 'open_nami.missing_output_dir_suffix'
- | 'open_nami.no_profiles_yet'
- | 'open_nami.no_saved_profiles'
- | 'open_nami.output_dir_aria'
- | 'open_nami.output_label'
- | 'open_nami.page_title'
- | 'open_nami.platform_aria'
- | 'open_nami.profile_placeholder'
- | 'open_nami.profile_url_aria'
- | 'open_nami.remove'
- | 'open_nami.remove_profile_aria'
- | 'open_nami.save_settings'
- | 'open_nami.saved_profiles_aria'
- | 'open_nami.saving'
- | 'open_nami.sections_aria'
- | 'open_nami.select_cookies_title'
- | 'open_nami.select_output_dir_title'
- | 'open_nami.settings_saved'
- | 'open_nami.stage_highlights'
- | 'open_nami.stage_of'
- | 'open_nami.stage_photos'
- | 'open_nami.stage_setup'
- | 'open_nami.stage_stories'
- | 'open_nami.stage_videos'
- | 'open_nami.start_download'
- | 'open_nami.status_cancelled'
- | 'open_nami.status_downloaded'
- | 'open_nami.status_provisioning'
- | 'open_nami.status_starting'
- | 'open_nami.status_success'
- | 'open_nami.status_switching_engine'
- | 'open_nami.stop_download'
- | 'open_nami.stories_instagram_only'
- | 'open_nami.tab_download'
- | 'open_nami.tab_profiles'
- | 'open_nami.tab_settings'
- | 'open_nami.view_log'
-
| 'p2p.accept_transfer'
| 'p2p.click_to_copy'
| 'p2p.code_copied'
diff --git a/src/lib/i18n/lo.json b/src/lib/i18n/lo.json
index 52232456..7463c8cc 100644
--- a/src/lib/i18n/lo.json
+++ b/src/lib/i18n/lo.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "ຕິດຕາມພັດສະດຸຈາກ 8 ບໍລິສັດຂົນສົ່ງຂອງບຣາຊິວໃນບ່ອນດຽວ, ອັບເດດອັດຕະໂນມັດ."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.json
index 565916d4..f1a911cc 100644
--- a/src/lib/i18n/pt.json
+++ b/src/lib/i18n/pt.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.json
index 33385c30..5c7de769 100644
--- a/src/lib/i18n/ru.json
+++ b/src/lib/i18n/ru.json
@@ -5310,7 +5310,7 @@
"speed_unit_mb": "МБ/с",
"decimal_separator": ","
},
- "open_nami": {
+ "nami": {
"page_title": "Nami — загрузчик из соцсетей",
"sections_aria": "Разделы Nami",
"tab_download": "Загрузка",
diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.json
index f0cbee26..0d76de4a 100644
--- a/src/lib/i18n/zh-TW.json
+++ b/src/lib/i18n/zh-TW.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.json
index 84d76f71..48f90862 100644
--- a/src/lib/i18n/zh.json
+++ b/src/lib/i18n/zh.json
@@ -5302,7 +5302,7 @@
"tracking_desc": "Follow packages from 8 Brazilian carriers in one place, refreshed automatically."
}
},
- "open_nami": {
+ "nami": {
"page_title": "Nami - Social Media Downloader",
"sections_aria": "Nami sections",
"tab_download": "Download",
diff --git a/src/lib/nami/dispatcher.test.ts b/src/lib/nami/dispatcher.test.ts
index e77a6181..7432705f 100644
--- a/src/lib/nami/dispatcher.test.ts
+++ b/src/lib/nami/dispatcher.test.ts
@@ -2,7 +2,7 @@ import { describe, it, expect, vi } from 'vitest';
import { dispatchMultiTierDownload } from './dispatcher';
import type { ParsedProfile } from '../utils/nami_parser';
-describe('open_nami multi-tier dispatcher', () => {
+describe('nami multi-tier dispatcher', () => {
const mockProfile: ParsedProfile = {
platform: 'instagram',
username: 'test_creator',
diff --git a/src/lib/nami/extractors/extractors.test.ts b/src/lib/nami/extractors/extractors.test.ts
index 56cd9ce0..39ad4f17 100644
--- a/src/lib/nami/extractors/extractors.test.ts
+++ b/src/lib/nami/extractors/extractors.test.ts
@@ -5,7 +5,7 @@ import { parseTikTokRehydrationJson } from './tiktok';
import { extractFacebookMediaFromHtml } from './facebook';
import { shouldSkipTweetReply } from './x';
-describe('open_nami extractors suite', () => {
+describe('nami extractors suite', () => {
it('instantiates all 4 platform extractors cleanly', () => {
expect(getExtractor('instagram').platform).toBe('instagram');
expect(getExtractor('tiktok').platform).toBe('tiktok');
diff --git a/src/lib/nami/http.test.ts b/src/lib/nami/http.test.ts
index c87bb572..5fcfa410 100644
--- a/src/lib/nami/http.test.ts
+++ b/src/lib/nami/http.test.ts
@@ -1,7 +1,7 @@
import { describe, it, expect, vi } from 'vitest';
import { HttpClient, parseNetscapeCookies, formatCookieHeader } from './http';
-describe('open_nami http client', () => {
+describe('nami http client', () => {
it('parses netscape cookie format correctly', () => {
const raw = `# Netscape HTTP Cookie File
.instagram.com\tTRUE\t/\tTRUE\t1799999999\tsessionid\t12345%3Aabc
diff --git a/src/lib/nami/i18n.ts b/src/lib/nami/i18n.ts
index 7db52557..32cbd11c 100644
--- a/src/lib/nami/i18n.ts
+++ b/src/lib/nami/i18n.ts
@@ -8,19 +8,19 @@ export type NamiTranslate = (key: string, values?: Record<string, unknown>) => s
export type OpenNamiTranslate = NamiTranslate;
const STAGE_KEYS: Record<string, string> = {
- setup: 'open_nami.stage_setup',
- photos: 'open_nami.stage_photos',
- videos: 'open_nami.stage_videos',
- stories: 'open_nami.stage_stories',
- highlights: 'open_nami.stage_highlights'
+ setup: 'nami.stage_setup',
+ photos: 'nami.stage_photos',
+ videos: 'nami.stage_videos',
+ stories: 'nami.stage_stories',
+ highlights: 'nami.stage_highlights'
};
const STATUS_KEYS: Record<string, string> = {
- 'Download cancelled': 'open_nami.status_cancelled',
- 'Provisioning download engine binary...': 'open_nami.status_provisioning',
- 'Switching to secondary video engine (yt-dlp)...': 'open_nami.status_switching_engine',
- 'Engine not found (auto-download available)': 'open_nami.engine_missing',
- 'All download engines ready': 'open_nami.engines_ready'
+ 'Download cancelled': 'nami.status_cancelled',
+ 'Provisioning download engine binary...': 'nami.status_provisioning',
+ 'Switching to secondary video engine (yt-dlp)...': 'nami.status_switching_engine',
+ 'Engine not found (auto-download available)': 'nami.engine_missing',
+ 'All download engines ready': 'nami.engines_ready'
};
export function namiStageLabel(
@@ -44,16 +44,16 @@ export function namiStatusMessage(
if (exact) return t(exact);
if (text.startsWith('Starting ')) {
- return t('open_nami.status_starting', {
+ return t('nami.status_starting', {
stage: namiStageLabel(text.slice('Starting '.length), t)
});
}
if (text.startsWith('Downloaded: ')) {
- return t('open_nami.status_downloaded', { file: text.slice('Downloaded: '.length) });
+ return t('nami.status_downloaded', { file: text.slice('Downloaded: '.length) });
}
const success = /^Successfully downloaded (\d+) files$/.exec(text);
if (success) {
- return t('open_nami.status_success', { count: success[1] });
+ return t('nami.status_success', { count: success[1] });
}
return text;
diff --git a/src/routes/nami/+page.svelte b/src/routes/nami/+page.svelte
index f3610362..24e429c2 100644
--- a/src/routes/nami/+page.svelte
+++ b/src/routes/nami/+page.svelte
@@ -10,15 +10,15 @@
let activeTab = $state<TabKey>('download');
const NAV_ITEMS: { key: TabKey; labelKey: string; icon: string }[] = [
- { key: 'download', labelKey: 'open_nami.tab_download', icon: '/icons/open-nami-download.png' },
- { key: 'profiles', labelKey: 'open_nami.tab_profiles', icon: '/icons/open-nami-profiles.png' },
- { key: 'settings', labelKey: 'open_nami.tab_settings', icon: '/icons/open-nami-settings.png' }
+ { key: 'download', labelKey: 'nami.tab_download', icon: '/icons/open-nami-download.png' },
+ { key: 'profiles', labelKey: 'nami.tab_profiles', icon: '/icons/open-nami-profiles.png' },
+ { key: 'settings', labelKey: 'nami.tab_settings', icon: '/icons/open-nami-settings.png' }
];
const DESCRIPTION_KEYS: Record<TabKey, string> = {
- download: 'open_nami.desc_download',
- profiles: 'open_nami.desc_profiles',
- settings: 'open_nami.desc_settings'
+ download: 'nami.desc_download',
+ profiles: 'nami.desc_profiles',
+ settings: 'nami.desc_settings'
};
function switchTab(tab: TabKey) {
@@ -27,11 +27,11 @@
</script>
<svelte:head>
- <title>{$t('open_nami.page_title')}</title>
+ <title>{$t('nami.page_title')}</title>
</svelte:head>
<div class="oo-shell">
- <aside class="oo-sidebar" aria-label={$t('open_nami.sections_aria')}>
+ <aside class="oo-sidebar" aria-label={$t('nami.sections_aria')}>
<nav class="oo-nav" role="tablist" aria-orientation="vertical">
{#each NAV_ITEMS as item (item.key)}
<button
@@ -64,7 +64,7 @@
<header class="oo-header">
<p class="oo-kicker">Nami</p>
<h1 class="oo-title">
- {$t(NAV_ITEMS.find((i) => i.key === activeTab)?.labelKey ?? 'open_nami.tab_download')}
+ {$t(NAV_ITEMS.find((i) => i.key === activeTab)?.labelKey ?? 'nami.tab_download')}
</h1>
<p class="oo-description">
{$t(DESCRIPTION_KEYS[activeTab])}