Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Add Spanish translations to nav labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonfagan committed Oct 5, 2023
1 parent b827196 commit 45a3363
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/lib/language/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default {
"Wednesday": "Wednesday",
"Saturday": "Saturday",
"Catalog": "Catalog",
"My List": "My List",
"Info": "Info",
"Bookmarks": "Bookmarks",
"Learn": "Learn",
"Bookmarked": "Bookmarked",
"No Bookmarks": "No Bookmarks",
"It's not loading!": "It's not loading!"
Expand Down Expand Up @@ -72,8 +72,8 @@ export default {
"Automotive": "Automotor",
"Health": "Salud",
"Catalog": "Catálago",
"My List": "Mi lista",
"Info": "Información",
"Bookmarks": "Marcadores",
"Learn": "Aprende",
"Bookmarked": "Marcado",
"No Bookmarks": "No hay marcadores",
"It's not loading!": "¡No se está cargando!"
Expand Down
14 changes: 7 additions & 7 deletions src/lib/views/BottomNavigationView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import { thingsLength } from '$lib/stores/myList';
$: catalogText = $t('Catalog');
$: myListText = $t('My List');
$: infoText = $t('Info');
$: bookmarksText = $t('Bookmarks');
$: learnText = $t('Learn');
</script>

<div class="btm-nav bg-indigo-50 upward-shadow box-content lg:hidden">
Expand All @@ -26,7 +26,7 @@
alt={catalogText}
class="w-5 h-5"
/>
<span class="text-xs font-display font-semibold">Catalog</span>
<span class="text-xs font-display font-semibold">{catalogText}</span>
</button>
<button
class="bg-transparent"
Expand All @@ -41,11 +41,11 @@
{/if}
<img
src={$activeScreen === Screen.myList ? SolidBookmarkIcon : BookmarkIcon}
alt={myListText}
alt={bookmarksText}
class="w-5 h-5"
/>
</div>
<div class="text-xs font-display font-semibold">Bookmarks</div>
<div class="text-xs font-display font-semibold">{bookmarksText}</div>
</button>
<button
class="bg-transparent"
Expand All @@ -54,10 +54,10 @@
>
<img
src={$activeScreen === Screen.info ? SolidLightbulbIcon : LightbulbIcon}
alt={infoText}
alt={learnText}
class="w-5 h-5"
/>
<span class="text-xs font-display font-semibold">Learn</span>
<span class="text-xs font-display font-semibold">{learnText}</span>
</button>
</div>

Expand Down

0 comments on commit 45a3363

Please sign in to comment.