1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 14:59:36 +02:00

Update localization for activities and adventures; change links and placeholders

This commit is contained in:
Sean Morley 2024-11-04 19:25:07 -05:00
parent 7988ba4d68
commit 9ac4a8f4e9
17 changed files with 738 additions and 54 deletions

View file

@ -44,7 +44,7 @@
<p class="py-1">
© {copyrightYear}
<a
href="https://github.com/seanmorley15"
href="https://seanmorley.com"
target="_blank"
rel="noopener noreferrer"
class="text-primary-500 underline">Sean Morley</a

View file

@ -54,7 +54,7 @@
<input
type="text"
class="input input-bordered w-full"
placeholder={$t('adventures.add_an_activity')}
placeholder={$t('adventures.add_a_tag')}
bind:value={inputVal}
on:keydown={(e) => {
if (e.key === 'Enter') {

View file

@ -682,7 +682,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
<div class="collapse collapse-plus bg-base-200 mb-4 overflow-visible">
<input type="checkbox" />
<div class="collapse-title text-xl font-medium">
{$t('adventures.activity_types')} ({adventure.activity_types?.length || 0})
{$t('adventures.tags')} ({adventure.activity_types?.length || 0})
</div>
<div class="collapse-content">
<input

View file

@ -35,7 +35,7 @@
</p>
<li><button on:click={() => goto('/profile')}>{$t('navbar.profile')}</button></li>
<li><button on:click={() => goto('/adventures')}>{$t('navbar.my_adventures')}</button></li>
<li><button on:click={() => goto('/activities')}>{$t('navbar.my_activities')}</button></li>
<li><button on:click={() => goto('/activities')}>{$t('navbar.my_tags')}</button></li>
<li><button on:click={() => goto('/shared')}>{$t('navbar.shared_with_me')}</button></li>
<li><button on:click={() => goto('/settings')}>{$t('navbar.settings')}</button></li>
<form method="post">

View file

@ -18,7 +18,7 @@
function addLink() {
// check to make it a valid URL
if (!isValidUrl(newLink)) {
warning = 'Invalid URL';
warning = $t('notes.invalid_url');
return;
} else {
warning = null;
@ -150,7 +150,7 @@
<input
type="url"
class="input input-bordered w-full mb-1"
placeholder="${$t('notes.add_a_link')} (e.g. https://example.com)"
placeholder="{$t('notes.add_a_link')} (e.g. https://example.com)"
bind:value={newLink}
on:keydown={(e) => {
if (e.key === 'Enter') {