-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌐 Add templates name and description translation keys (#1120)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Templates now support multiple languages with the introduction of a translation function for template names, descriptions, and category tags. - **Enhancements** - Improved template naming consistency with capitalization adjustments for clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
- Loading branch information
1 parent
a235a7a
commit 5124373
Showing
8 changed files
with
238 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
127 changes: 127 additions & 0 deletions
127
apps/builder/src/features/templates/hooks/useTemplates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
import { TemplateProps } from '../types' | ||
import { useTranslate } from '@tolgee/react' | ||
|
||
export const useTemplates = (): TemplateProps[] => { | ||
const { t } = useTranslate() | ||
|
||
return [ | ||
{ | ||
name: t('templates.modal.marketing.leadGeneration.name'), | ||
emoji: '🤝', | ||
fileName: 'lead-gen.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.leadGeneration.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.product.customerSupport.name'), | ||
emoji: '😍', | ||
fileName: 'customer-support.json', | ||
category: 'product', | ||
description: t('templates.modal.product.customerSupport.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.quiz.name'), | ||
emoji: '🕹️', | ||
fileName: 'quiz.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.quiz.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.leadScoring.name'), | ||
emoji: '🏆', | ||
fileName: 'lead-scoring.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.leadScoring.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.leadMagnet.name'), | ||
emoji: '🧲', | ||
fileName: 'lead-magnet.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.leadMagnet.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.productRecommendation.name'), | ||
emoji: '🍫', | ||
fileName: 'product-recommendation.json', | ||
category: 'marketing', | ||
description: t( | ||
'templates.modal.marketing.productRecommendation.description' | ||
), | ||
backgroundColor: '#010000', | ||
}, | ||
{ | ||
name: t('templates.modal.product.npsSurvey.name'), | ||
emoji: '⭐', | ||
fileName: 'nps.json', | ||
category: 'product', | ||
description: t('templates.modal.product.npsSurvey.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.product.userOnboarding.name'), | ||
emoji: '🧑🚀', | ||
fileName: 'onboarding.json', | ||
category: 'product', | ||
description: t('templates.modal.product.userOnboarding.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.other.digitalProductPayment.name'), | ||
emoji: '🖼️', | ||
fileName: 'digital-product-payment.json', | ||
description: t('templates.modal.other.digitalProductPayment.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.product.faq.name'), | ||
emoji: '💬', | ||
fileName: 'faq.json', | ||
category: 'product', | ||
description: t('templates.modal.product.faq.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.other.movieRecommendation.name'), | ||
emoji: '🍿', | ||
fileName: 'movie-recommendation.json', | ||
description: t('templates.modal.other.movieRecommendation.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.other.basicChatGpt.name'), | ||
emoji: '🤖', | ||
fileName: 'basic-chat-gpt.json', | ||
description: t('templates.modal.other.basicChatGpt.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.other.audioChatGpt.name'), | ||
emoji: '🤖', | ||
fileName: 'audio-chat-gpt.json', | ||
description: t('templates.modal.other.audioChatGpt.description'), | ||
isNew: true, | ||
}, | ||
{ | ||
name: t('templates.modal.other.chatGptPersonas.name'), | ||
emoji: '🎭', | ||
fileName: 'chat-gpt-personas.json', | ||
description: t('templates.modal.other.chatGptPersonas.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.leadGenWithAi.name'), | ||
emoji: '🦾', | ||
fileName: 'lead-gen-ai.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.leadGenWithAi.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.marketing.insuranceOffer.name'), | ||
emoji: '🐶', | ||
fileName: 'dog-insurance-offer.json', | ||
category: 'marketing', | ||
description: t('templates.modal.marketing.insuranceOffer.description'), | ||
}, | ||
{ | ||
name: t('templates.modal.other.openAiConditions.name'), | ||
emoji: '🧠', | ||
fileName: 'openai-conditions.json', | ||
isNew: true, | ||
description: t('templates.modal.other.openAiConditions.description'), | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5124373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
landing-page-v2 – ./apps/landing-page
landing-page-v2-git-main-typebot-io.vercel.app
landing-page-v2-typebot-io.vercel.app
home.typebot.io
5124373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app
5124373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
sellmycarbr.com
sniperclass.com
svhmapp.mprs.in
tanjakoil.store
techmate.africa
typebot.aloe.do
web.ofilipi.com
acordo-certo.com
app-liberado.pro
ask.pemantau.org
batepapo.digital
bot.contakit.com
bot.imovfast.com
bot.lafabri.link
bot.neobank.tech
bot.piccinato.co
bot.synclab.help
bot.zionlabs.dev
chat.sifucrm.com
chat.syncwin.com
chatonlineja.com
clo.closeer.work
cockroach.cr8.ai
codigoslucre.com
consultagov.chat
demo.chatjer.com
desafioem21d.com
faqs.nigerias.io
feiraodehoje.com
georgemarttt.com
go.chatbotcv.com
guiascore900.com
haymanevents.com
kw.wpwakanda.com
localamor.online
lojamundobox.com
my.skillbrow.com
myrentalhost.com
nadieralatif.com
next-contato.com
pray.jetdigi.com
ren.aarealtor.co
serasa-score.com
silvercop.com.br
silvercop.online
stan.vselise.com
typebot.aloe.bot
vidalimentar.com
voicehelp.cr8.ai
chat-do-cidadao.me
chat.daftarjer.com
chat.foxbot.online
chat.hand-made.one
chat.thausdisc.com
chat.tuanpakya.com
chat.webisharp.com
chatbotforthat.com
cibellyprof.com.br
descobrindotudo.me
dicanatural.online
digitalhelp.com.au
draraquelnutri.com
drcarlosyoshi.site
facilitebid.online
goalsettingbot.com
golpenuncamais.com
viewer-v2-typebot-io.vercel.app
mdb.assessoria.jtrebesqui.progenbr.com
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
gabinete.baleia.formulario.progenbr.com
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com
www.typebot.io
get-typebot.com
www.get-typebot.com