The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
/**
* Texts of the strand "create". Every text a user can read in this strand's
* screens lives here, not in JSX, so the guard reads them in one place.
* English, short sentences, no dashes, "Tap" instead of the desktop verb,
* "this phone" instead of "your machine".
*/
import type { CreateIntent } from '../../stores/createStore'
import { MIN_TRAIN_IMAGES, maxTrainImages } from '../../lib/train-image-cap'
import { UNFILTERED_MARK_LABEL } from '../../lib/unfiltered-mark'
import { THREE_D_TEXT } from '../../lib/three/three-d-text'
import { priced } from '../policy/gates'
import { POLICY } from './policy'
/** How many photos a training in the cloud takes. The numbers are the ones the code checks. */
const TRAIN_MIN = MIN_TRAIN_IMAGES
const TRAIN_MAX = maxTrainImages('cloud')
type ToolText = { name: string; short: string; placeholder: string; empty: string; show: string }
const TOOL: Record<CreateIntent, ToolText> = {
image: {
name: 'Image', short: 'Image', placeholder: 'Describe your image',
empty: 'Describe what you want to see.',
show: 'Type a sentence and get a picture. Pick the look, the shape and how many you want.',
},
edit: {
name: 'Edit', short: 'Edit', placeholder: 'Describe the new look',
empty: 'Add a photo and say what should change. Paint an area to change only that part.',
show: 'Change a photo with words. Restyle all of it, or paint the part that should change.',
},
removebg: {
name: 'Remove background', short: 'Cutout', placeholder: '',
empty: 'Add a photo. LU cuts out the subject and removes everything behind it.',
show: 'Cut a subject out of its background in one tap.',
},
upscale: {
name: 'Enhance image', short: 'Enhance', placeholder: '',
empty: 'Add a photo and choose how large it should become.',
show: 'Make a small or soft picture sharp at 2K, 4K or 8K.',
},
eraser: {
name: 'Erase object', short: 'Erase', placeholder: '',
empty: 'Add a photo and paint over what should disappear.',
show: 'Paint over something and it is gone, with the background filled in.',
},
video: {
name: 'Video', short: 'Video', placeholder: 'Describe the motion and the scene',
empty: 'Describe a short scene and how it moves.',
show: 'A short clip from a sentence. Choose the length before you start.',
},
animate: {
name: 'Animate image', short: 'Animate', placeholder: 'Describe how the image should move',
empty: 'Add a photo and say how it should move.',
show: 'Bring a still picture to life as a short clip.',
},
character: {
name: 'Character', short: 'Character', placeholder: 'Describe the scene for your character',
empty: 'Train a character from your photos, then put it into any scene.',
show: 'Teach LU a face or a figure from a few photos and use it in new pictures.',
},
lipsync: {
name: 'Talking character', short: 'Talking', placeholder: '',
empty: 'Pick a face and give it a voice.',
show: 'A portrait speaks your text, with a voice you choose or record.',
},
music: {
name: 'Music', short: 'Music', placeholder: 'Describe the track: genre, mood, tempo, instruments',
empty: 'Describe the sound you want.',
show: 'A full track from a description, with your own lyrics if you like.',
},
extend: {
name: 'Extend video', short: 'Extend', placeholder: 'Describe how the clip should continue',
empty: 'Pick one of your clips and say how it goes on.',
show: 'Make one of your clips longer, picking up where it ended.',
},
motion: {
name: 'Motion', short: 'Motion', placeholder: 'Optional: style or scene hints',
empty: 'Add a portrait and a video. The portrait moves like the person in the video.',
show: 'Move a figure from a photo the way someone moves in a video.',
},
'3d': {
name: '3D model', short: '3D', placeholder: 'Describe one object',
empty: 'Describe an object, or add a photo or a short video of one.',
show: 'Turn words, a photo or a short video into a 3D model you can spin around.',
},
// Not a phone tool (TOOLS leaves it out); the type names every intent.
swap_character: {
name: 'Swap Character', short: 'Swap', placeholder: '',
empty: 'Add a video and a photo of the new person.',
show: 'Put a new person into a real video. Same moves, same scene.',
},
}
/** A getter here is a text in two wordings; the store switches of the build pick one (policy/gates.ts). */
export const CREATE_STRINGS = {
tool: TOOL,
// ---------- K1 ----------
title: 'Create',
credits: (n: string) => `${n} credits. Open account`,
creditsUnknown: 'Credits. Open account',
gallery: 'Gallery',
toolRow: 'Tool',
allTools: 'All',
allToolsLabel: 'All tools',
promptLabel: 'Prompt',
summaryLabel: (line: string, price: string) => `Run settings: ${line}. ${price}`,
summaryEmpty: 'Run settings',
addSource: 'Add source',
settings: 'Settings',
modelNone: 'Choose a model',
modelFixed: 'LU Cloud',
create: 'Create',
cancel: 'Cancel',
train: 'Train',
startBatch: (n: number) => `Run ${n} images`,
openResult: 'Open result full screen',
save: 'Save',
share: 'Share',
edit: 'Edit',
animate: 'Animate',
more: 'More',
resultOf: (i: number, n: number) => `Result ${i} of ${n}`,
styles: 'Prompt styles',
allStyles: 'All styles',
batchRow: (n: number) => `Batch: ${n} images`,
batchRowSub: 'Run them one after another',
retention: (days: number) => `Cloud results stay available for ${days} days. Save the ones you want to keep.`,
gotIt: 'Got it',
pickedUp: (n: number) => (n === 1 ? 'Picked up 1 running job.' : `Picked up ${n} running jobs.`),
pickedUpText: 'Still rendering on LU Cloud. The result lands in your gallery when it is done.',
pickedUpOffline: 'Still rendering on LU Cloud. LU fetches the result when you are back online.',
improveFailed: 'Your prompt could not be improved this time. The run used your own prompt.',
resultReady: 'Your result is ready',
resultsReady: (n: number) => `${n} results are ready`,
get resumedFailed() {
return priced('A run from before did not finish. You were not charged.', 'A run from before did not finish. No credits were used.')
},
view: 'View',
pastDueTitle: 'Your last payment failed.',
payInvoice: 'Pay open invoice',
// gate
gateTitle: 'Create runs on LU Cloud',
gateText: "Images, video, music and edits are made on LU's hosted GPUs. Your phone only sends the prompt and shows the result.",
gateSignIn: 'Sign in to LU Cloud',
gateTurnOn: 'Turn on Cloud',
gatePlan: 'See LU Cloud plans',
gateShowcase: 'See what you can make',
gateQuiet: 'Create needs LU Cloud. You can turn Cloud features on in Settings.',
gateOpenSettings: 'Open Settings',
gateChecking: 'Checking your account',
// source and inputs on the stage
sourceTitle: 'Source image',
sourceOpen: 'Open source image',
sourceRemove: 'Remove source image',
sourceAdd: 'Add a photo',
sourceSize: (w: number, h: number) => `${w} x ${h}`,
paintMask: 'Paint mask',
paintMaskAgain: 'Change mask',
maskSet: 'Mask painted',
maskRequired: 'Paint over the object first',
maskOptional: 'Optional: paint the part that should change',
maskNeeded: 'This model changes only what you paint',
removeMask: 'Remove mask',
references: 'Reference photos',
referencesHint: (n: number) => `Up to ${n} more photos of the same subject`,
addReference: 'Add reference',
removeReference: (i: number) => `Remove reference ${i}`,
enhanceTo: 'Enhance to',
yourCharacters: 'Your characters',
yourCharactersSub: 'Pick a trained character or train a new one',
characterPicked: (name: string) => `Using ${name}`,
presenter: 'Presenter',
presenterSub: 'A portrait photo of the face that speaks',
presenterClip: 'Clip to sync',
presenterClipSub: 'A video of the person who should speak',
presenterFromModel: 'This model brings its own presenter. Choose one in the settings.',
voice: 'Voice',
voiceText: 'What should be said',
voiceTextHint: 'Up to a few sentences work best',
voiceMode: 'Voice kind',
voiceModeSpeak: 'Ready voice',
voiceModeDesign: 'Describe a voice',
voiceName: 'Voice',
voiceDescription: 'Voice description',
voiceDescriptionHint: 'For example: warm, calm, deep male voice',
makeVoice: 'Make voice',
voiceFile: 'Add sound file',
voiceFromGallery: 'From gallery',
voiceReady: (label: string) => `Voice ready: ${label}`,
voiceFileReady: (name: string) => `Sound file: ${name}`,
voiceRemove: 'Remove voice',
musicText: 'Text kind',
musicStyle: 'Style',
musicLyrics: 'Lyrics',
musicLyricsLabel: 'Lyrics',
musicLyricsHint: 'Markers like [Verse] and [Chorus] help the model sing them. Leave empty for an instrumental.',
musicStyleLabel: 'Style',
musicStyleHint: 'Genre, mood and voice, as comma separated tags.',
musicLyricsPlaceholder: 'Write the lyrics',
length: 'Length',
pickClip: 'Pick a clip',
pickClipSub: 'One of your videos from the gallery',
clipPicked: (label: string) => `Clip: ${label}`,
clipRemove: 'Remove clip',
portrait: 'Portrait',
portraitSub: 'A photo of the figure that should move',
motionVideo: 'Motion video',
motionVideoSub: 'A video from this phone that shows the movement',
motionVideoReady: (name: string) => `Video: ${name}`,
motionVideoRemove: 'Remove video',
addVideo: 'Add video',
// running
phase: {
uploading: 'Uploading',
improving: 'Improving your prompt',
get pricing() {
return priced('Confirming the price', 'Confirming the credits')
},
submitting: 'Sending',
queued: 'Waiting for a GPU',
rendering: 'Rendering',
finishing: 'Finishing',
},
usually: (text: string) => `usually ${text}`,
usuallyTime: (seconds: number) => (seconds < 90 ? `${Math.max(5, Math.round(seconds / 5) * 5)} s` : `${Math.max(2, Math.round(seconds / 60))} min`),
fullScreen: 'Full screen',
extend: 'Extend',
uploadCount: (done: number, total: number) => `${done} of ${total}`,
imagesDone: (done: number, total: number) => `${done} of ${total} done`,
get cancelRefund() {
return priced('Cancel and refund', 'Cancel and return credits')
},
cancelling: 'Cancelling',
runProgress: 'Run progress',
runningOffline: 'Still rendering on LU Cloud. LU fetches the result when you are back online.',
runningLeave: 'You can leave this page. The result lands in your gallery.',
// blocked reasons
block: {
offline: 'No internet',
'no-prompt': 'Describe what you want first',
'no-source': 'Add a photo first',
'no-mask': 'Paint the area first',
'no-character': 'Pick a character first',
'no-photos': `Add at least ${TRAIN_MIN} photos`,
'no-voice': 'Add a voice first',
'no-portrait': 'Add a portrait first',
'no-clip': 'Pick a clip first',
'no-motion-video': 'Add a motion video first',
'no-3d-video': 'Add a short video first',
'no-model': 'No model is available for this tool',
get 'price-unavailable'() {
return priced('Price could not be confirmed', 'Credits could not be confirmed')
},
get 'price-measuring'() {
return priced('Working out the price', 'Working out the credits')
},
'quota-unknown': 'Checking your credits',
},
notEnough: 'Not enough credits',
// price
thisRun: 'This run',
get priceChecking() {
return priced('Checking price', 'Checking credits')
},
get priceUnavailable() {
return priced('Price could not be confirmed. Try again.', 'Credits could not be confirmed. Try again.')
},
get priceUnknown() {
return priced('Price appears when your account has loaded', 'Credits appear when your account has loaded')
},
priceRetry: 'Try again',
runsLeft: (n: number, unit: string) => `Enough for ${n} more ${unit}`,
walletShort: (have: string) => `You have ${have} credits`,
videoBudget: "This month's video budget is used up",
noTrainings: 'Your included trainings are used up',
// errors
error: {
get failedTitle() {
return priced('This run failed. You were not charged.', 'This run failed. No credits were used.')
},
retry: 'Try again',
networkTitle: 'No connection to LU Cloud',
get networkText() {
return priced('The run did not start, so nothing was charged. Check your connection and try again.', 'The run did not start, so no credits were used. Check your connection and try again.')
},
networkRunningTitle: 'Connection lost',
creditsTitle: "You're out of credits",
creditsText: 'This run was not started. Plan credits refill on your renewal date.',
videoBudgetTitle: "This month's video budget is used up",
videoBudgetText: 'This run was not started. Top up credits keep video going.',
trainingsTitle: 'Your included trainings are used up',
trainingsText: 'This training was not started. Top up credits keep training going.',
seePlans: 'See plans',
get priceTitle() {
return priced('The price changed', 'The credits for this run changed')
},
get priceText() {
return priced((credits: string) => `This run now costs ${credits} credits. Nothing was charged. Check the price, then tap Create again.`, (credits: string) => `This run now uses ${credits} credits. No credits were used so far. Check the figure, then tap Create again.`)
},
get priceTextPlain() {
return priced('Nothing was charged. Check the new price, then tap Create again.', 'No credits were used. Check the new figure, then tap Create again.')
},
get reviewPrice() {
return priced('Review price', 'Review credits')
},
signedOutTitle: 'You are signed out',
signedOutText: 'Sign in to LU Cloud again to go on. Your prompt is kept.',
signIn: 'Sign in',
policyTitle: 'This prompt cannot be sent.',
policyText: 'Content that sexualizes minors is never generated.',
policyAccountText: "Your account's content policy blocked this prompt. You can change the policy in Settings.",
get policyServerTitle() {
return priced('This run was blocked by the content policy. You were not charged.', 'This run was blocked by the content policy. No credits were used.')
},
openPolicy: 'Content policy',
stillTitle: 'Still rendering',
stillText: 'This takes longer than expected. The result lands in your gallery when it is done. You can keep using the app.',
openGallery: 'Open gallery',
cannotStopTitle: 'This render already started',
get cannotStopText() {
return priced('It can no longer be stopped. It finishes, is charged and lands in your gallery.', 'It can no longer be stopped. It finishes, uses its credits and lands in your gallery.')
},
tooLargeTitle: 'This file is too large',
tooLargeText: 'Nothing was sent. Choose a smaller file.',
formatTitle: 'This file type is not supported',
formatText: 'Nothing was sent. Use a JPG, PNG, WebP or HEIC photo.',
expiredTitle: 'This file is no longer available',
expiredText: 'The cloud copy expired. Choose another one or make it again.',
chooseAnother: 'Choose another',
notLiveTitle: 'LU Cloud cannot make this right now',
get notLiveText() {
return priced('Nothing was charged. Try again later.', 'No credits were used. Try again later.')
},
partialTitle: 'Not everything was made',
inputTitle: 'Something is missing',
dismiss: 'Dismiss',
copyDetails: 'Copy details',
},
// files
file: {
tooLarge: (sizeMb: number, limitMb: number) => `This file has ${sizeMb} MB. The limit is ${limitMb} MB. Choose a smaller one.`,
wrongKind: { image: 'This is not a photo. Choose a JPG, PNG, WebP or HEIC photo.', video: 'This is not a video. Choose an MP4 or MOV video.', audio: 'This is not a sound file. Choose an MP3, WAV or M4A file.' },
empty: 'This file is empty. Choose another one.',
undecodable: 'This phone could not read this photo. Choose another one, or save it as JPG first.',
heic: 'This phone could not read this HEIC photo. In the camera settings choose the most compatible format, or share the photo as JPG and pick that.',
tooHeavy: 'This photo is too large for this phone to open. Crop it or save a smaller copy, then pick that.',
loading: 'Preparing the photo',
skipped: (n: number) => (n === 1 ? '1 file could not be used and was left out.' : `${n} files could not be used and were left out.`),
},
// saving
saved: { photos: 'Saved to Photos', files: 'Saved to Files' },
savedMany: (n: number) => `${n} saved`,
shared: 'Shared',
saveFailed: 'Could not save. Try Share instead.',
saveStorage: 'Could not save. Your phone is out of storage. Free up some space and save again.',
saveDenied: 'LU is not allowed to add to Photos. Allow it in the system settings of this phone, then save again. Share still works.',
saveUnavailable: 'Saving does not work on this phone. Try Share.',
shareUnavailable: 'Sharing does not work on this phone.',
shareFailed: 'Could not share this result.',
saveExpired: 'The cloud copy of this result expired. It cannot be saved any more.',
copied: 'Copied',
copyFailed: 'Could not copy',
// ---------- K2 ----------
tools: { title: 'Tools', group: 'Tool' },
// ---------- K3 ----------
model: {
title: 'Model',
search: 'Search models',
searchPlaceholder: 'Search',
list: 'Models',
get priceDetails() {
return priced((name: string) => `Price details for ${name}`, (name: string) => `Credit details for ${name}`)
},
get priceTitle() {
return priced('Price details', 'Credit details')
},
none: 'No model matches',
noneText: 'Try another word, or clear the search.',
clearSearch: 'Clear search',
empty: 'No model for this tool',
emptyText: 'The cloud catalog offers no model for this tool right now.',
get builtIn() {
return priced('The list could not be updated. These are the models LU knew at the last start. Prices may differ.', 'The list could not be updated. These are the models LU knew at the last start. Credits may differ.')
},
refresh: 'Update list',
refreshing: 'Updating the list',
refreshed: 'The list is up to date',
refreshFailed: 'The list could not be updated. Check your connection and try again.',
// The word of the measured mark, written once in lib/unfiltered-mark.ts.
noFilter: UNFILTERED_MARK_LABEL,
perRun: 'One run',
perImage: 'One image',
perClip: (s: number) => `${s} second clip`,
perSecond: 'Per second',
perTraining: 'One training',
withCharacter: 'With a character',
get quoted() {
return priced('The price depends on your settings. The server confirms it before the run starts, and you see it under "This run".', 'The credits depend on your settings. The server confirms them before the run starts, and you see them under "This run".')
},
fromPrice: (credits: string) => `from ${credits}`,
get unknownPrice() {
return priced('Price appears when your account has loaded', 'Credits appear when your account has loaded')
},
get fixed() {
return priced('This is the price you pay for one run with this model. A failed run is refunded.', 'These are the credits one run with this model uses. A failed run gets them back.')
},
cr: (credits: string) => `${credits} cr`,
},
// ---------- K4 ----------
run: {
title: 'Run settings',
/** Prompt v2: what stood above and beside the field is at the top of this sheet. */
what: 'What',
model: 'Model',
runsOn: 'Runs on',
aspect: 'Aspect',
quality: 'Quality',
images: 'Images',
size: 'Size',
length: 'Length',
seconds: (s: number) => `${s} s`,
strength: 'Edit strength',
strengthHint: 'Low keeps the photo close to the original. High lets the prompt change more.',
improve: 'Improve my prompt',
improveSub: 'The chat model rewrites your prompt for the picked model before the run',
negative: 'Negative prompt',
negativeNone: 'None',
negativeLabel: 'What should not appear',
negativeHint: 'For example: blurry, text, watermark',
history: 'Prompt history',
historyCount: (n: number) => (n === 1 ? '1 prompt' : `${n} prompts`),
historyEmpty: 'No prompts yet',
historyEmptyText: 'Prompts you ran show up here.',
historyUse: (text: string) => `Use prompt: ${text}`,
historyRemove: (text: string) => `Remove prompt: ${text}`,
remove: 'Remove',
clearAll: 'Clear all',
clearAllTitle: 'Clear the prompt history?',
clearAllText: 'All saved prompts are removed from this phone.',
clearAllConfirm: 'Clear all',
keep: 'Keep',
modelSettings: 'Model settings',
modelSettingsSub: (name: string) => `Controls of ${name}`,
saveStyle: 'Save as prompt style',
saveStyleTitle: 'Name this prompt style',
saveStyleField: 'Name',
saveStyleConfirm: 'Save',
styleSaved: 'Prompt style saved',
nothing: 'This tool has no settings. It takes your input as it is.',
automatic: 'Automatic',
random: 'Random',
seedRandom: 'New random seed',
choose: (name: string) => `Choose ${name}`,
on: 'On',
off: 'Off',
musicLength: 'Track length',
musicModelDecides: 'This model decides the length of the track itself.',
stylePreset: 'Style preset',
presenterField: 'Presenter',
loras: 'Style LoRAs',
lorasHint: (max: number) => `Add up to ${max} styles. Each one changes the look of the clip, the strength says how much.`,
lorasAdd: 'Add style LoRA',
strengthOf: 'Strength',
listNone: 'None',
listCount: (n: number) => (n === 1 ? '1 entry' : `${n} entries`),
listUpTo: (max: number) => `Up to ${max} entries.`,
listEmpty: 'Nothing added yet.',
listAdd: 'Add entry',
listNewEntry: 'New entry',
listFull: (max: number) => `${max} is the most this model takes`,
listEntry: (n: number) => `Style ${n}`,
listEntryChange: (n: number, name: string) => `Change style ${n}, now ${name}`,
listEntryRemove: (n: number, name: string) => `Remove style ${n}, ${name}`,
listTextRemove: (text: string) => `Remove ${text}`,
showMore: 'Show more',
shownOf: (shown: number, total: number) => `Showing ${shown} of ${total}`,
presenterNone: 'No presenter chosen',
presenterChange: (name: string) => `Change presenter, now ${name}`,
presenterSearch: 'Search presenters',
presenterNoMatch: 'No presenter found',
presenterNoPhoto: 'No photo',
},
// ---------- K5 ----------
source: {
title: 'Add source',
take: 'Take photo',
takeSub: 'Open the camera',
library: 'Photo library',
librarySub: 'Pick one photo',
libraryBatchSub: 'Pick one photo, or up to 50 to run them one after another',
file: 'File',
fileSub: 'Pick from Files',
fromGallery: 'From gallery',
fromGallerySub: 'Use one of your results',
saved: 'Saved characters',
savedSub: 'Photos you saved from your results',
savedTitle: 'Saved characters',
savedEmpty: 'No saved characters yet',
savedEmptyText: 'Open a result, tap More and then Save as character.',
savedPhotos: (n: number) => (n === 1 ? '1 photo' : `${n} photos`),
savedDelete: (name: string) => `Delete ${name}`,
savedDeleteTitle: (name: string) => `Delete ${name}?`,
savedDeleteText: 'Its photos are removed from this phone.',
switchesToEdit: 'Adding a photo switches to Edit.',
video: 'Video',
videoSub: 'LU takes still frames. The video stays on this phone.',
batchStarted: (n: number) => `${n} images added to the batch`,
batchLeftOut: (n: number) => `Only the first ${n} were added. A batch takes up to 50 images.`,
},
// ---------- K6 ----------
gal: {
title: 'Gallery',
titlePick: 'Pick from gallery',
count: (n: number) => (n === 1 ? '1 result' : `${n} results`),
filters: 'Filter',
all: 'All',
images: 'Images',
video: 'Video',
audio: 'Audio',
threeD: '3D',
select: 'Select',
done: 'Done',
selected: (n: number) => `${n} selected`,
open: (label: string) => `Open ${label}`,
pick: (label: string) => `Select ${label}`,
delete: 'Delete',
save: 'Save',
use: 'Use',
empty: 'Nothing here yet. Your results show up here.',
emptyFilter: 'Nothing of this kind yet.',
emptyPick: { source: 'No images yet. Make one first, or pick a photo from your phone.', extend: 'No clips yet. Make a video first.', voice: 'No sound yet. Make a voice first.' },
refreshing: 'Refreshing',
expired: 'Expired',
loadFailed: 'Could not load',
retry: 'Try again',
remove: 'Remove',
deleteTitle: (n: number) => (n === 1 ? 'Delete this result?' : `Delete ${n} results?`),
deleteText: 'It will be removed from your gallery on this phone.',
deleted: (n: number) => (n === 1 ? 'Deleted' : `${n} deleted`),
kind: { image: 'Image', video: 'Video', audio: 'Audio', '3d': '3D model' },
saving: (i: number, n: number) => `Saving ${i} of ${n}`,
preparing: 'Preparing',
},
// ---------- K7 ----------
item: {
close: 'Close',
more: 'More',
save: 'Save',
share: 'Share',
zoomIn: 'Zoom in',
zoomOut: 'Reset zoom',
previous: 'Previous result',
next: 'Next result',
enhance: 'Enhance video',
prompt: 'Prompt',
promptHide: 'Hide prompt',
copy: 'Copy',
noPrompt: 'This result has no prompt.',
youWrote: 'You wrote',
sentToModel: 'Sent to the model',
rewrittenBy: (who: string) => `Rewritten by ${who}`,
improveFailed: 'Improve my prompt was on, but the rewrite did not work. This run used your own prompt.',
missing: 'This result is no longer in your gallery',
missingText: 'It was deleted or belongs to another phone.',
backToGallery: 'Back to gallery',
expired: 'The cloud copy of this result expired',
expiredText: (days: number) => `Cloud results are kept for ${days} days. This one can no longer be shown.`,
refreshing: 'Refreshing the address',
model: 'Model',
position: (i: number, n: number) => `${i} of ${n}`,
},
enhance: {
title: 'Enhance video',
text: 'Makes the clip sharper at a higher resolution. The result is a new clip in your gallery.',
target: 'Resolution',
start: (price: string) => `Enhance, ${price}`,
startPlain: 'Enhance',
},
// ---------- K8 ----------
result: {
title: 'Result',
editMask: 'Edit with mask',
editMaskSub: 'Paint the part that should change',
enhance: 'Enhance',
enhanceSub: 'Make it larger and sharper',
removeBg: 'Remove background',
animate: 'Animate',
extend: 'Extend',
extendSub: 'Make the clip longer',
enhanceVideo: 'Enhance video',
useVoice: 'Use as voice',
useVoiceSub: 'For a talking character',
saveCharacter: 'Save as character',
saveCharacterSub: 'Keep photos of this figure for later',
useSource: 'Use as source',
delete: 'Delete',
deleteTitle: 'Delete this result?',
deleteText: 'It will be removed from your gallery on this phone.',
keep: 'Keep',
preparing: 'Preparing',
characterTitle: 'Save as character',
characterName: 'Name',
characterNamePlaceholder: 'For example: Mia',
characterFrames: 'Frames',
characterFramesHint: (n: number) => `Move the clip to a good frame and add it. Up to ${n} frames.`,
characterImageHint: 'This picture is saved as a photo of the character.',
addFrame: 'Add this frame',
removeFrame: (i: number) => `Remove frame ${i}`,
characterSave: 'Save',
characterSaved: (name: string, n: number) => (n === 1 ? `Saved 1 photo to ${name}` : `Saved ${n} photos to ${name}`),
characterNeedName: 'Give the character a name',
characterNeedFrame: 'Add at least one frame',
// D-VW, check of package 17: after a phase with a full phone the storage of the web view refuses every write until LU restarts.
characterNeedsRestart: 'LU could not save the character. LU needs a restart before it can save again.',
frameFailed: 'Could not read this frame. Let the clip load, then try again.',
gone: 'This result is no longer available',
},
// ---------- K9 ----------
mask: {
title: 'Paint the area',
cancel: 'Cancel',
done: 'Done',
tool: 'Tool',
brush: 'Brush',
eraser: 'Eraser',
size: 'Brush size',
undo: 'Undo',
redo: 'Redo',
invert: 'Invert',
clear: 'Clear',
fit: 'Fit to screen',
canvas: 'Image. Paint with one finger, zoom and move with two fingers.',
hint: 'Paint with one finger. Zoom and move with two.',
paintFirst: 'Paint the object first',
paintFirstEdit: 'Paint the area first',
discard: 'Discard',
noSource: 'No image to paint on',
noSourceText: 'Add a source image first, then paint the area.',
addSource: 'Add source',
sample: 'Use a sample image',
loading: 'Loading the image',
loadFailed: 'This image could not be opened for painting.',
saving: 'Saving the mask',
saveFailed: 'The mask could not be saved. Try again.',
zoom: (percent: number) => `${percent}%`,
},
// ---------- K10 / K11 ----------
chars: {
title: 'Characters',
new: 'New character',
use: (name: string) => `Use ${name}`,
more: (name: string) => `More for ${name}`,
rename: 'Rename',
renameTitle: 'Rename character',
renameField: 'Name',
renameConfirm: 'Rename',
renamed: 'Renamed on this phone',
delete: 'Delete',
deleteTitle: (name: string) => `Delete ${name}?`,
deleteText: 'The trained character is removed from your account. Pictures you made with it stay.',
deleted: 'Character deleted',
deleteFailed: 'Could not delete this character. Try again.',
empty: 'No characters yet',
emptyText: `Train one from ${TRAIN_MIN} to ${TRAIN_MAX} photos of the same person or figure.`,
signedOut: 'Characters belong to your LU Cloud account',
signedOutText: 'Sign in to see the characters you trained and to train a new one.',
loadFailed: 'Your characters could not be loaded',
loadFailedText: 'Check your connection and try again.',
retry: 'Try again',
family: (name: string) => `Works with ${name} models`,
trigger: (word: string) => `Trigger word: ${word}`,
training: 'Training',
trainingText: 'This takes a few minutes. You can leave this page.',
trainingCancel: 'Cancel',
trainingCancelled: 'Training cancelled',
get trainingCannotStop() {
return priced('This training already started and cannot be stopped. It finishes, is charged and the character appears here.', 'This training already started and cannot be stopped. It finishes, uses its credits and the character appears here.')
},
trainingCancelFailed: 'Could not cancel the training. Check your connection and try again.',
trainingName: (name: string) => `Training ${name}`,
trainingProgress: 'Training progress',
picked: (name: string) => `${name} is picked for the next run`,
actions: 'Character actions',
close: 'Close',
families: { flux: 'Flux', 'z-image': 'Z-Image', 'qwen-image': 'Qwen Image', 'ltx-2': 'LTX' } as Record<string, string>,
},
newChar: {
title: 'New character',
name: 'Name',
namePlaceholder: 'For example: mia',
nameHint: 'One word. You use it in prompts to call the character.',
nameMissing: 'Give the character a name',
photos: 'Photos',
photosCount: (n: number, max: number) => `${n} of ${max}`,
add: 'Add photos',
addHint: (min: number, max: number) => `${min} to ${max} photos of the same person or figure. Different angles and light work best.`,
remove: (i: number) => `Remove photo ${i}`,
tooFew: (min: number) => `Add at least ${min} photos`,
tooMany: (max: number, over: number) => `A training takes up to ${max} photos. ${over} were left out.`,
base: 'Model family',
baseSub: 'The character works with models of this family',
train: (price: string) => `Train, ${price}`,
trainPlain: 'Train',
cellular: 'Uploading photos over mobile data can use a lot of your data plan.',
cellularUnknown: 'This phone does not tell LU whether it is on Wi-Fi. Uploading photos over mobile data can use a lot of your data plan.',
waitWifi: 'Wait for Wi-Fi',
waitingWifi: 'Waiting for Wi-Fi',
onWifi: 'You are on Wi-Fi.',
uploading: (done: number, total: number) => `Uploading photo ${done} of ${total}`,
uploadingPlain: 'Uploading photos',
uploadProgress: 'Upload progress',
training: 'Training your character',
trainingText: 'This takes a few minutes and goes on when you leave the app.',
done: 'Character trained',
get failedTitle() {
return priced('Training failed. You were not charged.', 'Training failed. No credits were used.')
},
cannotStopTitle: 'This training already started',
get cannotStopText() {
return priced('It can no longer be stopped. It finishes, is charged and the character appears on your shelf.', 'It can no longer be stopped. It finishes, uses its credits and the character appears on your shelf.')
},
get uploadFailedTitle() {
return priced('The upload stopped. You were not charged.', 'The upload stopped. No credits were used.')
},
uploadFailedText: 'Your photos are still here. Check your connection and try again.',
uploadFailedKept: (up: number, total: number) =>
`${up} of ${total} photos are already uploaded. Check your connection and try again, the upload goes on with the rest.`,
retry: 'Try again',
cancel: 'Cancel',
preparing: 'Preparing photos',
},
// ---------- K12: guided presets (several steps, the presets of the desktop) ----------
guided: {
title: 'Presets',
entry: 'Presets',
entrySub: 'Guided runs in a few steps',
get lead() {
return priced('A preset leads you to a result step by step. Every step shows its price before it starts.', 'A preset leads you to a result step by step. Every step shows its credits before it starts.')
},
all: 'All',
categories: 'Kind of preset',
open: (name: string) => `Open preset ${name}`,
steps: (n: number) => (n === 1 ? '1 step' : `${n} steps`),
from: (price: string) => `from ${price}`,
continueTitle: (name: string) => `${name} is still open`,
continueText: 'Your inputs and finished steps are kept until you start over.',
continueRunning: 'A step of this preset is rendering right now.',
continue: 'Continue',
stylesRow: 'Prompt styles',
stylesRowSub: 'Prompt building blocks for Image and Video',
noneTitle: 'No preset here',
noneText: 'This version of LU has no preset of this kind.',
notFoundTitle: 'This preset is not available',
notFoundText: 'It is not part of this version of LU.',
backToPresets: 'All presets',
otherTitle: (name: string) => `${name} is still running`,
otherText: 'One preset runs at a time. Open it to see the step, or wait until it is done.',
openOther: (name: string) => `Open ${name}`,
stepOf: (n: number, total: number) => `Step ${n} of ${total}`,
stepsLabel: 'Steps of this preset',
stepDone: 'done',
model: 'Model',
modelChange: (name: string) => `Change the model, now ${name}`,
modelOnly: 'The only model for this step',
modelTitle: 'Model for this step',
// The word of the measured mark, written once in lib/unfiltered-mark.ts.
noFilter: UNFILTERED_MARK_LABEL,
optional: 'optional',
field: {
image: 'Image',
images: 'Images',
video: 'Video',
audio: 'Voice or sound',
left_audio: 'First voice',
right_audio: 'Second voice',
last_image: 'End image',
source_clip: 'Clip to continue',
} as Record<string, string>,
inputEmpty: { image: 'A photo or picture from this phone or your gallery', video: 'A clip from this phone or your gallery', audio: 'A sound file from this phone or your gallery' },
fromPhone: 'Choose file',
fromGallery: 'From gallery',
replace: 'Replace',
remove: 'Remove',
removeLabel: (name: string) => `Remove ${name}`,
uploading: 'Uploading',
carried: 'From the step before',
files: (n: number) => `${n} images`,
clipEmpty: 'Pick a clip from your gallery to continue it.',
clipPick: 'Pick a clip',
galleryTitle: { image: 'Pick an image', video: 'Pick a clip', audio: 'Pick a sound' },
galleryEmpty: { image: 'No image in your gallery yet.', video: 'No clip in your gallery yet.', audio: 'No sound in your gallery yet.' },
galleryEmptyTitle: 'Nothing to pick',
prompt: { speech: 'What should be said', sound: 'The sound you want', movement: 'The movement', setting: 'The new setting', scene: 'Your scene' },
promptPlaceholder: { speech: 'What should your character say?', sound: 'Describe the sounds you want', movement: 'Describe the movement', setting: 'Describe the new setting', scene: 'Describe your scene' },
promptOptional: 'Optional for this model.',
style: 'Visual style',
styleNone: 'Choose a visual style',
ideas: 'Prompt idea',
ideasTitle: 'Prompt ideas',
ideasHint: 'An idea is added to what you wrote. Change it in your own words.',
settings: 'Settings',
more: 'More settings',
moreSub: (n: number) => (n === 1 ? '1 more control' : `${n} more controls`),
duration: 'Clip length',
shotType: 'Shots',
shotSingle: 'One shot',
shotMulti: 'Several shots',
negative: 'Negative prompt',
negativeHint: 'What must not appear.',
voice: 'Voice',
voiceDescription: 'Voice description',
voiceDescriptionHint: 'For example: a calm low voice with a slight rasp',
price: 'This step',
get priceChecking() {
return priced('Checking price', 'Checking credits')
},
priceEstimate: (price: string) => `about ${price}`,
priceNeeds: {
get input() {
return priced((name: string) => `Add ${name} to see the price`, (name: string) => `Add ${name} to see the credits`)
},
get clip() {
return priced('Pick a clip to see the price', 'Pick a clip to see the credits')
},
get prompt() {
return priced('Write the text to see the price', 'Write the text to see the credits')
},
},
get priceFailed() {
return priced('The price could not be confirmed.', 'The credits could not be confirmed.')
},
generate: 'Generate',
generateStep: (title: string) => `Generate: ${title}`,
busyElsewhere: 'Another run is in progress',
get billed() {
return priced('Each step is billed on its own. Results stay in your gallery.', 'Each step uses its own credits. Results stay in your gallery.')
},
running: 'Creating your result',
runningLeave: 'You can leave this page. The result lands in your gallery.',
booking: 'Booking the step',
get cancel() {
return priced('Cancel and refund', 'Cancel and return credits')
},
cancelling: 'Cancelling',
resultSaved: 'Saved to your gallery',
resultGone: 'The result is in your gallery.',
openResult: 'Open the result',
tryAgain: 'Try again',
tryAgainLabel: 'Make this step again',
next: 'Next step',
nextLabel: (title: string) => `Next step: ${title}`,
startOver: 'Start over',
startOverTitle: 'Start this preset over?',
startOverText: 'Your inputs of this run are cleared. Everything already made stays in your gallery.',
startOverConfirm: 'Start over',
keep: 'Keep',
openGallery: 'Open gallery',
notEnough: 'Not enough credits for this step',
itemGone: 'This result is no longer available. Pick another one.',
toCreate: 'Open Create',
gateText: 'Presets run on LU Cloud. Open Create to sign in or turn LU Cloud on.',
},
// ---------- K12b: prompt styles (prompt building blocks) ----------
stylesPage: {
title: 'Prompt styles',
new: 'New style',
apply: (name: string) => `Apply style ${name}`,
applied: (name: string) => `Style ${name} applied`,
edit: 'Edit',
editLabel: (name: string) => `Edit ${name}`,
delete: 'Delete',
deleteLabel: (name: string) => `Delete ${name}`,
deleteTitle: (name: string) => `Delete ${name}?`,
deleteText: 'The style is removed from this phone.',
builtIn: 'Built in',
mine: 'Your styles',
forImage: 'Image',
forVideo: 'Video',
formNew: 'New style',
formEdit: 'Edit style',
name: 'Name',
namePlaceholder: 'For example: Moody portrait',
tool: 'For',
text: 'Prompt building block',
textHint: 'Added to what you type. For example: soft light, 35mm, film grain',
aspect: 'Aspect',
quality: 'Quality',
length: 'Clip length',
keepValue: 'Keep',
save: 'Save style',
saved: 'Style saved',
problems: {
'no-name': 'Give the style a name',
'no-content': 'Add a prompt building block or pick a value',
'name-taken': 'A style with this name exists already',
full: 'You have the most styles this phone keeps. Delete one first.',
},
emptyMine: 'You have no styles of your own yet.',
seconds: (s: number) => `${s} s`,
},
// ---------- K13 ----------
showcase: {
title: 'What you can make',
intro: 'Everything here runs on LU Cloud. Your phone sends the request and shows the result.',
signIn: 'Sign in to LU Cloud',
turnOn: 'Turn on Cloud',
plans: 'See plans',
open: 'Open Create',
},
// ---------- K14 ----------
batch: {
title: 'Batch',
sub: (n: number) => (n === 1 ? '1 image' : `${n} images`),
addMore: 'Add more',
remove: (name: string) => `Remove ${name}`,
start: (price: string) => `Start, ${price}`,
startPlain: 'Start',
stop: 'Stop after this one',
stopping: 'Stopping after this one',
status: { waiting: 'Waiting', running: 'Running', done: 'Done', failed: 'Failed' },
openResult: (name: string) => `Open result of ${name}`,
results: 'Results',
resultsBelow: 'The results are below and in your gallery.',
what: (tool: string) => `Each image runs through ${tool} with the same settings.`,
prompt: 'Prompt',
noPrompt: 'Go back and describe the edit first',
needTwo: 'Add at least 2 images',
notOffered: 'This tool runs one image at a time',
covers: (n: number, total: number) => `Your credits cover ${n} of ${total} images. The rest is not started.`,
doneAll: (n: number) => `All ${n} images are done`,
summary: (done: number, total: number) => `${done} of ${total} images are done.`,
get failed() {
return priced(
(n: number) => (n === 1 ? '1 image failed and was not charged.' : `${n} images failed and were not charged.`),
(n: number) => (n === 1 ? '1 image failed and used no credits.' : `${n} images failed and used no credits.`),
)
},
stopped: 'Stopped. The rest was not started.',
get stoppedCredits() {
return priced('There were not enough credits to go on. The rest was not started and nothing was charged for it.', 'There were not enough credits to go on. The rest was not started and no credits were used for it.')
},
stoppedOther: 'The batch stopped early. The rest was not started.',
leftReady: 'What is left stays in the list. Tap Start to run it.',
empty: 'No images in the batch',
emptyText: 'Pick several photos from your library to run them one after another.',
pick: 'Pick photos',
waitingPace: 'Waiting a moment. The server takes a limited number of images per minute.',
progress: 'Batch progress',
each: (price: string) => `${price} each`,
},
// ---------- store rules: report, consent, buying ----------
// ---------- 3D (3.1.0) ----------
threeD: {
wayLabel: 'How to make the model',
ways: THREE_D_TEXT.waysShort,
pictureFirst: THREE_D_TEXT.pictureFirst,
sourceTitle: 'Photo of one object',
sourceSub: 'One thing, fully in frame. A plain background works best.',
moreSides: THREE_D_TEXT.moreSides,
moreSidesSub: THREE_D_TEXT.moreSidesSub,
sides: THREE_D_TEXT.sides,
addSide: (side: string) => `Add the ${side.toLowerCase()} side`,
removeSide: (side: string) => `Remove the ${side.toLowerCase()} side`,
videoTitle: 'Video of one object',
videoSub: THREE_D_TEXT.dropVideoSub,
addVideo: 'Add a video',
otherVideo: 'Another video',
reading: THREE_D_TEXT.framesReading,
framesMany: THREE_D_TEXT.framesMany,
framesOne: THREE_D_TEXT.framesOne,
framesSome: (n: number) => `LU picked ${n} moments from your video. Swap any of them.`,
frame: (i: number, n: number) => `Moment ${i} of ${n}`,
honest: THREE_D_TEXT.videoHonest,
videoFailed: 'LU could not read this video. Try another one.',
detail: THREE_D_TEXT.detail,
details: THREE_D_TEXT.details,
viewer: 'Your 3D model',
},
policy: {
report: 'Report',
reportLabel: (name: string) => `Report ${name}`,
/** purchase 'text-only': the ONE sentence a store allows without a link (strings/policy.ts). It follows the neutral text. */
plansElsewhere: POLICY.plansOnWebsite,
creditsNeutral: 'This run was not started. Your account does not have enough credits for it.',
videoBudgetNeutral: 'This run was not started. The video budget of this month is used up.',
trainingsNeutral: 'This training was not started. The included trainings of this account are used up.',
gateNeutral: 'Create is not available for this account.',
pastDueNeutral: 'LU Cloud is paused for this account.',
},
common: { close: 'Close', back: 'Back', cancel: 'Cancel', loading: 'Loading', none: 'None' },
} as const
/**
* "My computer" in Create (LU 3.0.7): the user's own computer makes the
* picture or the clip with its own models. No price, no credits, no time:
* the computer says how far it is, nothing else.
*/
export const COMPUTER_STRINGS = {
sourceLabel: 'Where to create',
computer: 'My computer',
cloud: 'LU Cloud',
useComputer: 'Create on my computer',
useCloud: 'Create on LU Cloud',
image: 'Image',
video: 'Video',
mediaLabel: 'What to make',
onYourComputer: 'On your computer',
hint: (name: string) => `Made on ${name || 'your computer'} with its own models. Nothing goes to LU Cloud.`,
placeholderImage: 'Describe your image',
placeholderVideo: 'Describe your video',
promptLabel: 'Prompt',
create: 'Create',
cancel: 'Cancel',
cancelling: 'Cancelling',
settings: 'Settings',
settingsTitle: 'On your computer',
model: 'Model',
modelNone: 'No model',
negative: 'Leave out',
negativePlaceholder: 'What should not be in it',
addImage: 'Add a start image',
removeImage: 'Remove the start image',
startImage: 'Start image',
startImageSub: (w: number, h: number) => (w && h ? `${w} x ${h}, goes to your computer` : 'Goes to your computer'),
imageTooLarge: 'This image is too large for your computer. Pick a smaller one.',
imageUnreadable: 'This image cannot be read. Pick a PNG, JPEG or WebP image.',
noImageToImage: 'Your computer makes images from words only.',
loading: 'Asking your computer',
retry: 'Try again',
noModels: (what: string) => `Your computer has no model for ${what}. Add one in LU on your computer.`,
busy: 'Your computer is busy. Your job waits its turn.',
phase: {
sending: 'Sending to your computer',
queued: 'Waiting on your computer',
running: 'Working on your computer',
loading: 'Bringing the result to this phone',
},
queuedAt: (n: number) => (n > 1 ? `Number ${n} in line` : 'Next in line'),
waiting: 'Your computer cannot be reached right now. The job keeps running there and comes back when it can.',
leave: 'You can leave this page. The result comes to the gallery.',
failedTitle: 'It did not work',
dismiss: 'OK',
blockedTitle: 'This prompt cannot be sent',
done: 'Done',
resultLabel: (n: number, total: number) => `Result ${n} of ${total}`,
summaryLabel: (line: string) => `Settings: ${line}`,
summaryEmpty: 'Settings',
defaultValue: 'Computer decides',
count: 'How many',
seedRandom: 'Random',
fieldTitle: (key: string, title: string) =>
({ width: 'Width', height: 'Height', steps: 'Steps', seed: 'Seed', count: 'How many', duration: 'Length in seconds', factor: 'How much larger' } as Record<string, string>)[key] ?? title,
// A17: the whole tool row on the computer.
toolsLabel: 'Tools on your computer',
unavailableTitle: 'Not available on your computer',
unavailableMark: 'Not available',
photosTitle: (tool: string) => (tool === 'edit' ? 'Photos to edit' : tool === 'image' || tool === 'video' ? 'Start image' : 'Photo'),
photosSub: (tool: string, max: number) =>
tool === 'edit'
? max > 1
? `Up to ${max}. Photo 1 changes, the others are references. They go to your computer.`
: 'The photo that changes. It goes to your computer.'
: 'Goes to your computer.',
photoLabel: (n: number, total: number) => `Photo ${n} of ${total}`,
removePhoto: (n: number) => `Remove photo ${n}`,
takePhoto: 'Take photo',
library: 'Photo library',
needsPhoto: 'Add a photo first.',
photosLeftOut: (n: number) => `Your computer takes up to ${n} photos for this. The others were left out.`,
paintArea: 'Paint the area',
paintAgain: 'Change the area',
removeArea: 'Remove the area',
areaSet: 'Only the painted area of photo 1 changes.',
areaNone: 'Optional: paint the part of photo 1 that should change.',
character: 'Character',
characterSub: 'Trained on your computer. Name it in the prompt like any other subject.',
lyrics: 'Lyrics',
lyricsPlaceholder: 'Optional: the words to sing',
factor: 'How much larger',
factorOption: (n: number) => `${n}x`,
modelOwn: 'Computer decides',
placeholderStyle: 'Describe the style: genre, mood, tempo, instruments',
placeholderEdit: 'Describe what should change',
// A17: the gallery of the computer.
galleryPhone: 'On this phone',
galleryComputer: 'On my computer',
galleryTabs: 'Which gallery',
galleryEmpty: 'The gallery of your computer is empty. What you make there or from this phone shows up here.',
galleryLoading: 'Asking your computer',
galleryMore: 'Load more',
galleryFetching: 'Bringing it to this phone',
galleryOpen: (name: string) => `Open ${name} from your computer`,
galleryMadeHere: 'Made on your computer',
galleryMadeOnPhone: 'Made from a phone',
galleryAudio: 'Track',
} as const