Skip to content

Commit 3899d6d

Browse files
committed
fix: remove unused translation
1 parent e8ed065 commit 3899d6d

18 files changed

Lines changed: 18 additions & 53 deletions

File tree

app/pages/package-code/[[org]]/[packageName]/v/[version]/[...filePath].vue

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,6 @@ function getCurrentCodeUrlWithPath(path?: string): string {
219219
})
220220
}
221221
222-
// Extract org name from scoped package
223-
const orgName = computed(() => {
224-
const name = packageName.value
225-
if (!name.startsWith('@')) return null
226-
const match = name.match(/^@([^/]+)\//)
227-
return match ? match[1] : null
228-
})
229-
230222
// Line number click handler - update URL hash without scrolling
231223
function handleLineClick(lineNum: number, event: MouseEvent) {
232224
let newHash: string
@@ -264,14 +256,6 @@ const { copied: fileContentCopied, copy: copyFileContent } = useClipboard({
264256
copiedDuring: 2000,
265257
})
266258
267-
// Scroll to top of file content
268-
const contentContainer = useTemplateRef('contentContainer')
269-
function scrollToTop() {
270-
if (contentContainer.value) {
271-
contentContainer.value.scrollTo({ top: 0, behavior: 'smooth' })
272-
}
273-
}
274-
275259
// Canonical URL for this code page
276260
const canonicalUrl = computed(() => `https://npmx.dev${getCodeUrl(route.params)}`)
277261
@@ -384,7 +368,7 @@ defineOgImageComponent('Default', {
384368
</aside>
385369

386370
<!-- File content / Directory listing - sticky with internal scroll on desktop -->
387-
<div class="flex-1 min-w-0 self-start" ref="contentContainer">
371+
<div class="flex-1 min-w-0 self-start">
388372
<div
389373
class="sticky z-10 top-25 bg-bg border-b border-border px-4 py-2 flex items-center justify-between gap-2 text-nowrap overflow-x-auto max-w-full"
390374
>

i18n/locales/az-AZ.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,7 @@
774774
"preview": "önbaxış",
775775
"code": "kod"
776776
},
777-
"file_path": "Fayl yolu",
778-
"scroll_to_top": "Yuxarı qayıt"
777+
"file_path": "Fayl yolu"
779778
},
780779
"badges": {
781780
"provenance": {
@@ -1139,11 +1138,11 @@
11391138
"title": "Trendləri Müqayisə Et"
11401139
}
11411140
},
1142-
"file_too_large": "Fayl müqayisə üçün çox böyükdür",
1143-
"file_size_warning": "{size} müqayisə üçün 250KB limitini keçir",
11441141
"file_changes": "Fayl Dəyişiklikləri",
11451142
"files_count": "{count} fayl",
11461143
"lines_hidden": "{count} sətir gizlədilib",
1144+
"file_too_large": "Fayl müqayisə üçün çox böyükdür",
1145+
"file_size_warning": "{size} müqayisə üçün 250KB limitini keçir",
11471146
"compare_versions": "fərq",
11481147
"compare_versions_title": "Versiyaları müqayisə et",
11491148
"summary": "Xülasə",

i18n/locales/bg-BG.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,7 @@
735735
"preview": "преглед",
736736
"code": "код"
737737
},
738-
"file_path": "Път към файл",
739-
"scroll_to_top": "Към началото"
738+
"file_path": "Път към файл"
740739
},
741740
"badges": {
742741
"provenance": {

i18n/locales/cs-CZ.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,7 @@
786786
"preview": "náhled",
787787
"code": "kód"
788788
},
789-
"file_path": "Cesta k souboru",
790-
"scroll_to_top": "Posunout nahoru"
789+
"file_path": "Cesta k souboru"
791790
},
792791
"badges": {
793792
"provenance": {

i18n/locales/de-DE.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,7 @@
774774
"preview": "Vorschau",
775775
"code": "Code"
776776
},
777-
"file_path": "Dateipfad",
778-
"scroll_to_top": "Nach oben scrollen"
777+
"file_path": "Dateipfad"
779778
},
780779
"badges": {
781780
"provenance": {

i18n/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@
792792
"code": "code"
793793
},
794794
"file_path": "File path",
795-
"scroll_to_top": "Scroll to top",
796795
"binary_file": "Binary file",
797796
"binary_rendering_warning": "File type not supported for preview."
798797
},

i18n/locales/es.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,7 @@
735735
"preview": "vista previa",
736736
"code": "código"
737737
},
738-
"file_path": "Ruta del archivo",
739-
"scroll_to_top": "Volver arriba"
738+
"file_path": "Ruta del archivo"
740739
},
741740
"badges": {
742741
"provenance": {

i18n/locales/fr-FR.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,7 @@
776776
"preview": "aperçu",
777777
"code": "code"
778778
},
779-
"file_path": "Chemin du fichier",
780-
"scroll_to_top": "Remonter en haut"
779+
"file_path": "Chemin du fichier"
781780
},
782781
"badges": {
783782
"provenance": {

i18n/locales/hu-HU.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,7 @@
735735
"preview": "előnézet",
736736
"code": "kód"
737737
},
738-
"file_path": "Fájl elérési útja",
739-
"scroll_to_top": "Görgetés a tetejére"
738+
"file_path": "Fájl elérési útja"
740739
},
741740
"badges": {
742741
"provenance": {

i18n/locales/id-ID.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,7 @@
716716
"preview": "pratinjau",
717717
"code": "kode"
718718
},
719-
"file_path": "Jalur berkas",
720-
"scroll_to_top": "Kembali ke atas"
719+
"file_path": "Jalur berkas"
721720
},
722721
"badges": {
723722
"provenance": {

0 commit comments

Comments
 (0)