Skip to content
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
58 changes: 38 additions & 20 deletions apps/dotcom/client/public/tla/locales-compiled/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@
"value": "Export as"
}
],
"1460ab5e78": [
{
"type": 0,
"value": "Free tldraws"
}
],
"181b90f889": [
{
"type": 0,
Expand Down Expand Up @@ -159,6 +153,12 @@
"value": "Editor"
}
],
"37b3dca331": [
{
"type": 0,
"value": "Please sign in"
}
],
"3bd1b98dbd": [
{
"type": 0,
Expand Down Expand Up @@ -231,16 +231,10 @@
"value": "Reload"
}
],
"4e029798f2": [
{
"type": 0,
"value": "Free shares"
}
],
"4e875b8d8e": [
"4ea0bb66f7": [
{
"type": 0,
"value": "Free saves"
"value": "An account would be nice"
}
],
"50db1b7e1e": [
Expand Down Expand Up @@ -319,6 +313,12 @@
"value": "Old browser detected. Please update your browser to use this app."
}
],
"5bef23eb7e": [
{
"type": 0,
"value": "Create your account"
}
],
"5d26ae7550": [
{
"type": 0,
Expand All @@ -337,12 +337,6 @@
"value": "Copy"
}
],
"5ff75742e0": [
{
"type": 0,
"value": "Sign up for free"
}
],
"61057a0c84": [
{
"type": 0,
Expand Down Expand Up @@ -469,6 +463,12 @@
"value": "Restore version"
}
],
"7c7d5d493e": [
{
"type": 0,
"value": "Please sign up"
}
],
"7cb5f8b4a5": [
{
"type": 0,
Expand Down Expand Up @@ -727,6 +727,12 @@
"value": "Guest user"
}
],
"b52dc007ac": [
{
"type": 0,
"value": "Sign up (free and good)"
}
],
"b6d4223e60": [
{
"type": 0,
Expand Down Expand Up @@ -863,6 +869,12 @@
"value": "Sign out"
}
],
"c8c6a6504a": [
{
"type": 0,
"value": "You should sign up"
}
],
"cceaefbc20": [
{
"type": 0,
Expand Down Expand Up @@ -911,6 +923,12 @@
"value": "Try Again"
}
],
"d8a50c79a7": [
{
"type": 0,
"value": "Come with me to tldraw"
}
],
"d9100f3e10": [
{
"type": 0,
Expand Down
31 changes: 20 additions & 11 deletions apps/dotcom/client/public/tla/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
"13ddd375ad": {
"translation": "Export as"
},
"1460ab5e78": {
"translation": "Free tldraws"
},
"181b90f889": {
"translation": "Create file"
},
Expand Down Expand Up @@ -77,6 +74,9 @@
"344a7f427f": {
"translation": "Editor"
},
"37b3dca331": {
"translation": "Please sign in"
},
"3bd1b98dbd": {
"translation": "Unable to publish the changes."
},
Expand Down Expand Up @@ -113,11 +113,8 @@
"4d1c8263ba": {
"translation": "Reload"
},
"4e029798f2": {
"translation": "Free shares"
},
"4e875b8d8e": {
"translation": "Free saves"
"4ea0bb66f7": {
"translation": "An account would be nice"
},
"50db1b7e1e": {
"translation": "Unable to unpublish the file."
Expand Down Expand Up @@ -152,6 +149,9 @@
"5bec508475": {
"translation": "Old browser detected. Please update your browser to use this app."
},
"5bef23eb7e": {
"translation": "Create your account"
},
"5d26ae7550": {
"translation": "We failed to upload some of the content you created before you signed in."
},
Expand All @@ -161,9 +161,6 @@
"5fb63579fc": {
"translation": "Copy"
},
"5ff75742e0": {
"translation": "Sign up for free"
},
"61057a0c84": {
"translation": "Later"
},
Expand Down Expand Up @@ -227,6 +224,9 @@
"7be10fc592": {
"translation": "Restore version"
},
"7c7d5d493e": {
"translation": "Please sign up"
},
"7cb5f8b4a5": {
"translation": "Forget"
},
Expand Down Expand Up @@ -336,6 +336,9 @@
"b028909917": {
"translation": "Guest user"
},
"b52dc007ac": {
"translation": "Sign up (free and good)"
},
"b6d4223e60": {
"translation": "Sign in"
},
Expand Down Expand Up @@ -384,6 +387,9 @@
"c87aacf567": {
"translation": "Sign out"
},
"c8c6a6504a": {
"translation": "You should sign up"
},
"cceaefbc20": {
"translation": "Share this file"
},
Expand All @@ -408,6 +414,9 @@
"d876a9fe1a": {
"translation": "Try Again"
},
"d8a50c79a7": {
"translation": "Come with me to tldraw"
},
"d9100f3e10": {
"translation": "Go here to see the content"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,24 @@ import { TlaIcon } from '../TlaIcon/TlaIcon'
import styles from './top.module.css'

const ctaMessages = defineMessages({
signUp: { defaultMessage: 'Sign up for free' },
signInToShare: { defaultMessage: 'Sign in to share' },
signInToSave: { defaultMessage: 'Sign in to save' },
createFreeAccount: { defaultMessage: 'Create a free account' },
createYourAccount: { defaultMessage: 'Create your account' },
saveAndShare: { defaultMessage: 'Save and share' },
signInToSaveAndShare: { defaultMessage: 'Sign in to share' },
saveYourWork: { defaultMessage: 'Save your work' },
shareYourWork: { defaultMessage: 'Share your work' },
shareYourWorkForFree: { defaultMessage: 'Share for free' },
createFreeAccount: { defaultMessage: 'Create a free account' },
shareForFree: { defaultMessage: 'Share for free' },
signIn: { defaultMessage: 'Sign in' },
logIn: { defaultMessage: 'Log in' },
logUp: { defaultMessage: 'Log up' },
freeTldraws: { defaultMessage: 'Free tldraws' },
freeShares: { defaultMessage: 'Free shares' },
freeSaves: { defaultMessage: 'Free saves' },
getIn: { defaultMessage: "You'll sign up, won't you?" },
youShould: { defaultMessage: 'You should sign up' },
pleaseSignIn: { defaultMessage: 'Please sign in' },
pleaseSignUp: { defaultMessage: 'Please sign up' },
signUpFreeAndGood: { defaultMessage: 'Sign up (free and good)' },
youllSignUpWontYou: { defaultMessage: "You'll sign up, won't you?" },
anAccountWouldBeNice: { defaultMessage: 'An account would be nice' },
comeWithMe: { defaultMessage: 'Come with me to tldraw' },
betterThanMiro: { defaultMessage: 'Miro but good and free' },
betterThanExcalidraw: { defaultMessage: 'Not Excalidraw' },
betterThanFigjam: { defaultMessage: 'Figjam but tldraw' },
Expand All @@ -53,12 +56,12 @@ const ctaMessages = defineMessages({

function useCtaMessage() {
const ctaMessage = useMemo(() => {
if (process.env.NODE_ENV === 'test') return ctaMessages.signUp
if (process.env.NODE_ENV === 'test') return ctaMessages.signInToShare

const isFirstTime = getFromLocalStorage('tla-has-been-here')
if (!isFirstTime) {
setInLocalStorage('tla-has-been-here', 'yep')
return ctaMessages.signUp
return ctaMessages.signInToShare
}

const LIKELIHOOD_START = 0.25
Expand Down
Loading