Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"contribute.profile.total_xp": "Gesamt-XP",
"contribute.profile.xp": "Erfahrung (XP)",
"contribute.suggest_event.description": "Du kennst eine bevorstehende Veranstaltung? Schlage sie der Community vor! Für genehmigte Vorschläge erhältst du XP.",
"contribute.suggest_event.wiki_hint": "Bitte beachte auch unsere Hinweise zu {link}.",
"contribute.suggest_event.wiki_link_text": "Event-Vorschlägen",
"contribute.suggest_event.error": "Etwas ist schiefgelaufen. Bitte versuche es erneut.",
"contribute.suggest_event.field_begin": "Wann beginnt das Event?",
"contribute.suggest_event.field_end": "Wann endet das Event?",
Expand Down
2 changes: 2 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"contribute.profile.total_xp": "Total XP",
"contribute.profile.xp": "Experience (XP)",
"contribute.suggest_event.description": "Know about an upcoming event? Suggest it to the community! Approved suggestions earn you XP.",
"contribute.suggest_event.wiki_hint": "Please also read our guidance on {link}.",
"contribute.suggest_event.wiki_link_text": "event suggestions",
"contribute.suggest_event.error": "Something went wrong. Please try again.",
"contribute.suggest_event.field_begin": "When does the event start?",
"contribute.suggest_event.field_end": "When does the event end?",
Expand Down
21 changes: 19 additions & 2 deletions resources/tailwind-app/pages/Contribute/SuggestEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,26 @@
<h1 class="font-title text-2xl md:text-3xl lg:text-4xl font-bold mb-2">
{{ trans('contribute.suggest_event.title') }}
</h1>
<p class="mb-6 opacity-80">
<p class="mb-4 opacity-80">
{{ trans('contribute.suggest_event.description') }}
</p>
<p class="mb-6 text-sm opacity-80">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, if you have checked if your code is working. I don't see any changes here:

Image

<i18n-t keypath="contribute.suggest_event.wiki_hint" scope="global">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<i18n-t> is a component from vue-i18n, which is not installed in this project. This project uses laravel-vue-i18n so everything here is ignored.

<template #link>
<a
:href="
getActiveLanguage() === 'de'
Comment thread
0AgentSmith marked this conversation as resolved.
Outdated
? 'https://help.traewelling.de/features/events/'
: 'https://help.traewelling.de/en/features/events/'
"
target="_blank"
class="link link-primary font-semibold"
>
{{ trans('contribute.suggest_event.wiki_link_text') }}
</a>
</template>
</i18n-t>
Comment thread
0AgentSmith marked this conversation as resolved.
Outdated
</p>

<div v-if="successMessage" role="alert" class="alert alert-success mb-6">
<CircleCheck class="h-6 w-6" />
Expand Down Expand Up @@ -209,7 +226,7 @@

<script setup lang="ts">
import { ArrowLeft, CircleCheck, CircleX, MapPin, Search, TriangleAlert, X } from '@lucide/vue';
import { trans } from 'laravel-vue-i18n';
import { getActiveLanguage, trans } from 'laravel-vue-i18n';
import { DateTime } from 'luxon';
import { onBeforeUnmount, onMounted, reactive, ref } from 'vue';
import ContributeLayout from '../../layouts/ContributeLayout.vue';
Expand Down
Loading