2
0

diverse Übersetzungen

This commit is contained in:
2024-09-12 13:58:06 +02:00
parent 0a4ff7d22b
commit 589b776acb
27 changed files with 79 additions and 75 deletions

View File

@ -37,7 +37,7 @@ export const LiteBadge = () => {
style={{ bottom: '20px' }}
id="lite-badge"
>
Made with <span className="text-blue-500">Typebot</span>.
Made with <span className="text-blue-500">BLS bot</span>.
</a>
)
}

View File

@ -68,7 +68,7 @@ export const FileUploadForm = ({
setIsUploading(false)
if (urls.length)
return onSubmit({ label: `File uploaded`, value: urls[0] ?? '' })
setErrorMessage('An error occured while uploading the file')
setErrorMessage('Upsi.. deine Datei wurde nicht hochgeladen 😵‍💫')
}
const startFilesUpload = async (files: File[]) => {
if (isPreview)
@ -90,7 +90,7 @@ export const FileUploadForm = ({
setIsUploading(false)
setUploadProgressPercent(0)
if (urls.length !== files.length)
return setErrorMessage('An error occured while uploading the files')
return setErrorMessage('Upsi.. deine Dateien wurde nicht hochgeladen 😵‍💫')
onSubmit({
label: `${urls.length} file${urls.length > 1 ? 's' : ''} uploaded`,
value: urls.join(', '),

View File

@ -106,12 +106,12 @@ export const Bot = (props: BotProps & { class?: string }) => {
)
}
if (error.response.status === 400 || error.response.status === 403)
return setError(new Error('This bot is now closed.'))
return setError(new Error('Dieser BLS bot ist aktuell geschlossen. 😴'))
if (error.response.status === 404)
return setError(new Error("The bot you're looking for doesn't exist."))
return setError(new Error("Dieser BLS bot existiert nicht (mehr) 🤨"))
return setError(
new Error(
`Error! Couldn't initiate the chat. (${error.response.statusText})`
`Bitte lade die Seite neu. (${error.response.statusText})`
)
)
}

View File

@ -85,7 +85,7 @@ export const FileUploadForm = (props: Props) => {
value: urls[0] ? encodeUrl(urls[0].url) : '',
attachments: [{ type: file.type, url: urls[0]!.url }],
})
toaster.create({ description: 'An error occured while uploading the file' })
toaster.create({ description: 'Upsi.. deine Datei wurde nicht hochgeladen 😵‍💫' })
}
const startFilesUpload = async (files: File[]) => {
setIsUploading(true)
@ -105,7 +105,7 @@ export const FileUploadForm = (props: Props) => {
setUploadProgressPercent(0)
if (urls.length !== files.length)
return toaster.create({
description: 'An error occured while uploading the files',
description: 'Upsi.. deine Dateien wurde nicht hochgeladen 😵‍💫',
})
props.onSubmit({
type: 'text',

View File

@ -6,15 +6,15 @@ export const defaultFileInputOptions = {
visibility: 'Auto',
labels: {
placeholder: `<strong>
Click to upload
</strong> or drag and drop<br>
(size limit: 10MB)`,
Klicke zum Hochladen
</strong> oder nutze drag and drop<br>
(maximal: 10MB)`,
button: 'Upload',
clear: 'Clear',
skip: 'Skip',
success: {
single: 'File uploaded',
multiple: '{total} files uploaded',
single: 'Datei hochgeladen',
multiple: '{total} Datein hochgeladen',
},
},
} as const satisfies FileInputBlock['options']