Changeset bf4596d in Klonkt for src/services/i18n.js


Ignore:
Timestamp:
06/25/2026 07:55:32 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
49edc72
Parents:
fd95b1b
Message:

feat(editor): post type on top (segmented) + type-aware inputs

Bart's UX feedback: the post-type selector moved from the bottom Meta
section to a prominent segmented control at the top of the editor, above
the body. The selected type now reveals its own input:

  • Audio -> inline upload (drag/drop), transcodes server-side and drops

the track straight into the post (no more /admin/audio detour)

  • Video -> paste a URL -> embed chip
  • Foto -> hint toward cover + insert-image

Reuses the existing /admin/audio/upload endpoint (returns {ok,id}) and the
editor's insertChip(). Adds pedit.* i18n keys (nl/en/de).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/i18n.js

    rfd95b1b rbf4596d  
    752752    'pedit.type_video': 'Video',
    753753    'pedit.type_audio': 'Audio',
     754    'pedit.s_type': 'Wat voor post?',
     755    'pedit.audio_up_drop': 'Sleep audio hierheen of klik om te kiezen',
     756    'pedit.audio_up_hint': 'mp3, m4a, ogg, flac, wav — wordt automatisch omgezet en meteen in je post gezet. Details pas je later aan via de track.',
     757    'pedit.audio_up_busy': 'Uploaden…',
     758    'pedit.audio_up_done': 'In je post gezet',
     759    'pedit.audio_up_fail': 'Mislukt',
     760    'pedit.video_up_title': 'Video toevoegen',
     761    'pedit.video_up_ph': 'Plak een video-URL (YouTube, Vimeo…)',
     762    'pedit.video_up_btn': 'Invoegen',
     763    'pedit.foto_up_hint': 'Zet je foto als cover hierboven, of voeg foto’s toe in de tekst met de afbeelding-knop in de werkbalk.',
    754764    'pedit.pin_label': 'Vastpinnen bovenaan',
    755765    'pedit.pin_up': 'Hoger zetten',
     
    17491759    'pedit.type_video': 'Video',
    17501760    'pedit.type_audio': 'Audio',
     1761    'pedit.s_type': 'What kind of post?',
     1762    'pedit.audio_up_drop': 'Drop audio here or click to choose',
     1763    'pedit.audio_up_hint': 'mp3, m4a, ogg, flac, wav — converted automatically and added straight to your post. Edit details later via the track.',
     1764    'pedit.audio_up_busy': 'Uploading…',
     1765    'pedit.audio_up_done': 'Added to your post',
     1766    'pedit.audio_up_fail': 'Failed',
     1767    'pedit.video_up_title': 'Add a video',
     1768    'pedit.video_up_ph': 'Paste a video URL (YouTube, Vimeo…)',
     1769    'pedit.video_up_btn': 'Insert',
     1770    'pedit.foto_up_hint': 'Set your photo as the cover above, or add photos in the text with the image button in the toolbar.',
    17511771    'pedit.pin_label': 'Pin to top',
    17521772    'pedit.pin_up': 'Move up',
     
    27462766    'pedit.type_video': 'Video',
    27472767    'pedit.type_audio': 'Audio',
     2768    'pedit.s_type': 'Was für ein Beitrag?',
     2769    'pedit.audio_up_drop': 'Audio hierher ziehen oder klicken',
     2770    'pedit.audio_up_hint': 'mp3, m4a, ogg, flac, wav — wird automatisch umgewandelt und direkt in den Beitrag eingefügt. Details später über den Track ändern.',
     2771    'pedit.audio_up_busy': 'Wird hochgeladen…',
     2772    'pedit.audio_up_done': 'Zum Beitrag hinzugefügt',
     2773    'pedit.audio_up_fail': 'Fehlgeschlagen',
     2774    'pedit.video_up_title': 'Video hinzufügen',
     2775    'pedit.video_up_ph': 'Video-URL einfügen (YouTube, Vimeo…)',
     2776    'pedit.video_up_btn': 'Einfügen',
     2777    'pedit.foto_up_hint': 'Lege dein Foto oben als Titelbild fest oder füge Fotos im Text über die Bild-Schaltfläche in der Symbolleiste ein.',
    27482778    'pedit.pin_label': 'Oben anheften',
    27492779    'pedit.pin_up': 'Nach oben',
Note: See TracChangeset for help on using the changeset viewer.