Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Event Editor #75 #156

Merged
merged 5 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion components/MainNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@

<template v-if="uid">
<TButton to="/feed" icon="news" :label="$t('posts.title')" type="nav" />
<TButton to="/events" icon="calendar" label="Calendar" type="nav" />
<TButton
to="/events"
icon="calendar"
:label="$t('nav.events')"
type="nav"
/>
<TButton
to="/community"
icon="people"
Expand Down
11 changes: 6 additions & 5 deletions components/TForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
<div
class="flex justify-end space-x-2 bg-white py-4 border-t z-10 items-center bottom-0 sticky"
>
<TButton v-if="showRemove" label="Delete" @click="remove" />
<TButton v-if="showCancel" label="Cancel" @click="cancel" />
<TButton v-if="showCopy" label="Copy" @click="copy" />
<TButton v-if="showRemove" :label="$t('form.delete')" @click="remove" />
<TButton v-if="showCancel" :label="$t('form.cancel')" @click="cancel" />
<TButton v-if="showCopy" :label="$t('form.copy')" @click="copy" />
<slot name="buttons" />
<TButton
v-if="submitLabel"
:allow-guests="allowGuests"
type="primary"
:label="submitLabel"
Expand Down Expand Up @@ -58,7 +57,9 @@ export default {
},
submitLabel: {
type: String,
default: 'Save',
default: () => {
this.$t('form.save')
},
},
showCancel: {
type: Boolean,
Expand Down
8 changes: 6 additions & 2 deletions components/TInput/TInputPhoto.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ export default {
},
placeholder: {
type: String,
default: 'Change photo',
default: () => {
this.$t('photo.placeholder')
},
},
selectLabel: {
type: String,
default: 'Upload photo',
default: () => {
this.$t('photo.selectLabel')
},
},
item: {
type: Object,
Expand Down
79 changes: 70 additions & 9 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@ Sunday: Sunday
report: Report
cancel: Cancel
delete: Delete
visibilityOptions:
nav:
events: Calendar
form:
delete: Delete
cancel: Cancel
copy: Copy
save: Save
photo:
placeholder: Change photo
selectLabel: Upload photo
visibility:
label: Visibility
description: '- Public: searchable in Google and can be used in social media.

- Members: only visible for logged-in users.

- Unlisted: only possible to open with exact link, but not listed anywhere.'
public: Public
members: Members
unlisted: Unlisted
Expand Down Expand Up @@ -188,13 +204,6 @@ profile:
objective:
placeholder: Objective
meetingPlace: Where to meet?
visibility:
label: Visibility
description: '- Public profiles are searchable in Google and used in our social media to attract new members.

- Members profile are only visible for logged-in users.

- Unlisted profiles are possible to open with exact link, but they are not listed in members lists and search.'
photo: Photo
add: Add profile
title: Community
Expand Down Expand Up @@ -324,7 +333,7 @@ chat:
receiver:
deleted: DELETED
conversation:
userName: Chat with { username }
userName: Chat with {username}
empty: Start conversation with something nice.
lastSeen: opened chat last time
unread: haven't opened this chat yet
Expand Down Expand Up @@ -494,6 +503,58 @@ event:
photographer: Photographer
musician: Musician
organiser: Organiser
name:
placeholder: Event Name
label: Name
description:
label: Description
placeholder: placeholder: Text (markdown)
description: 'Use [widgets](https://wedance.vip/markdown), including images and videos'
startDate: When?
endDate: End Date
venue: Where?
cover: Cover
type: Event Type
duration:
label: How long?
thirtyMinutes: 30 minutes
oneHour: 60 minutes
ninetyMinutes: 1.5 hour
twoHours: 2 hours
threeHours: 3 hours
fourHours: 4 hours
fiveHours: 5 hours
custom: Custom
price:
label: Price
description: Please include currency, i.e. EUR, USD
styles: Dance styles
org:
label: Organiser
online:
label: Online?
description: Streaming via Zoom, Google Meet, Instagram Live, etc.?
international:
label: International
description: Is it a big event with >500 guests, like festival or congress?
place:
label: Community
description: Leave empty if you want your event to be shown in all cities
form:
label: External registration?
before: Do you use external platform to register for your event?
link:
label: Link
description: Direct booking link on ticket platform [ti.to](https://ti.to/home), Eventbrite, Google Form, etc.
facebook:
label: Facebook
description: Facebook event
promo:
label: Do you want free promo?
description: 'Send us link to your event on [Instagram](https://instagram.com/wedancevip) and we will promote it on our social media channels: Telegram, Instagram, Facebook and Twitter.'
confirmation:
label: Confirmation email for guests
placeholder: 'Example: Dear guest, you are confirmed to our event.'
TInputProfile:
changeRole: Change Role
actions: Actions
Expand Down
1 change: 0 additions & 1 deletion pages/events/_id/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
:fields="eventFields"
razbakov marked this conversation as resolved.
Show resolved Hide resolved
show-cancel
vertical
submit-label="Save"
class="bg-white p-4 space-y-4"
@save="saveItem"
@cancel="view(item.id)"
Expand Down
16 changes: 16 additions & 0 deletions use/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,23 @@ export const useCommon = () => {
},
]

const visibilityOptions = [
{
label: t('visibility.public'),
value: 'Public',
},
{
label: t('visibility.members'),
value: 'Members',
},
{
label: t('visibility.unlisted'),
value: 'Unlisted',
},
]

return {
yesNoOptions,
visibilityOptions,
}
}
Loading