Skip to content

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.

54.0 KB
Raw Blame
/**
 * Texts of the strand "settings". 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 { buyHinted, linked, marketed, priced } from '../policy/gates'
import { POLICY } from './policy'

/**
 * Some texts are getters: they read in two wordings, and the store switches
 * of the build pick one when the text is read (policy/gates.ts). `priced`
 * drops plan, price and subscription, `linked` drops the website, `marketed`
 * drops the promise of answers without limits.
 */
export const SETTINGS_STRINGS = {
  common: {
    get onLuLabs() {
      return linked('Opens lu-labs.ai in your browser', 'Opens in your browser')
    },
    get linkFailed() {
      return linked('Could not open the browser. Visit lu-labs.ai on this phone.', 'Could not open the browser.')
    },
    linkBlocked: 'This link cannot be opened from here.',
    notAvailable: 'Not available',
    notAvailableHere: 'Not available on this device',
    on: 'On',
    off: 'Off',
    signIn: 'Sign in',
    checkAgain: 'Check again',
    copied: 'Copied',
    copyFailed: 'Could not copy. Select the text and copy it by hand.',
    saved: 'Saved',
    loading: 'Loading',
  },

  root: {
    title: 'Settings',
    groupApp: 'App',
    groupAgent: 'Agent',
    groupModels: 'Models and connections',
    groupData: 'Data',
    groupHelp: 'Help',
    accountSignedOutTitle: 'Sign in to LU Cloud',
    accountSignedOutText: 'Chat, Create and voice on LU hosted models. Everything on this phone works without an account.',
    accountChecking: 'Checking your account',
    accountOffline: 'Offline, your session is kept',
    get accountNoPlan() {
      return priced('No active plan', 'LU Cloud is not active')
    },
    accountOpen: 'Open account',
    appearance: 'Appearance',
    chatDefaults: 'Chat defaults',
    chatDefaultsSub: (temperature: string) => `Temperature ${temperature}`,
    personas: 'Personas',
    memory: 'Memory',
    voice: 'Voice',
    agent: 'Agent and permissions',
    search: 'Web search',
    workflows: 'Workflows',
    engine: 'On device engine',
    providers: 'Providers',
    remote: 'Remote desktop',
    storage: 'Storage and downloads',
    data: 'Backup and import',
    privacy: 'Privacy',
    contentPolicy: 'Content policy',
    troubleshooting: 'Troubleshooting',
    about: 'About LU',
    themeSystem: 'System',
    themeDark: 'Dark',
    themeLight: 'Light',
    remoteConnected: 'Connected',
    remoteOff: 'Not connected',
  },

  account: {
    title: 'Account',
    modeLabel: 'Sign in or create an account',
    modeSignIn: 'Sign in',
    modeSignUp: 'Create account',
    get intro() {
      return linked('One account for LU Cloud here and on lu-labs.ai. On device chat never needs it.', 'One account for LU Cloud. On device chat never needs it.')
    },
    email: 'Email',
    emailPlaceholder: '[email protected]',
    password: 'Password',
    passwordHintNew: 'At least 8 characters.',
    show: 'Show',
    hide: 'Hide',
    showPassword: 'Show password',
    hidePassword: 'Hide password',
    submitSignIn: 'Sign in',
    submitSignUp: 'Create account',
    orContinue: 'or continue with',
    google: 'Continue with Google',
    github: 'Continue with GitHub',
    /** The words Apple prescribes for its button. */
    apple: 'Sign in with Apple',
    /** Under the ways to sign in: another way can mean another account. */
    sameSignIn: 'Use the same sign-in you used before to reach your existing account.',
    computer: 'Sign in with my computer',
    computerSub: (name: string) => `${name || 'Your computer'} asks you to allow it. This phone gets its own sign in.`,
    computerWaiting: 'Allow it on your computer',
    computerCancel: 'Stop',
    computerWait: (s: number) => `Your computer was asked too often. Try again in ${s} ${s === 1 ? 'second' : 'seconds'}.`,
    errApple: 'Sign in with Apple did not work. Try again, or sign in another way.',
    oauthWaiting: 'Waiting for your browser. Finish signing in there, then come back to LU.',
    oauthCancel: 'Cancel',
    /** The page of Google or GitHub did not open. Said, with the way on. */
    oauthNotOpened: 'The sign-in page did not open. Try again, or sign in with your email and password.',
    oauthRetry: 'Try again',
    /** Back in the app from the browser, and the sign in did not come with it (round 43). */
    oauthNotBack: 'Sign-in did not come back to LU. Try again, or sign in with your email and password.',
    oauthCancelled: 'Sign in was cancelled.',
    forgot: 'Forgot password?',
    forgotSub: 'Get a link by email and choose a new one',
    whatIsCloud: 'What is LU Cloud?',
    checking: 'Checking your account',
    // Errors, one sentence each: what happened and what to do.
    errWrongPassword: 'Email or password is not correct.',
    errNotConfirmed: 'Check your inbox to confirm your email.',
    errOffline: 'No internet. Try again when you are connected.',
    errEmailInvalid: 'Enter a valid email address.',
    errPasswordShort: 'The password needs at least 8 characters.',
    errExists: 'An account with this email already exists. Sign in instead.',
    errTooMany: 'Too many attempts. Wait a moment, then try again.',
    errServer: 'LU Cloud did not answer. Try again in a moment.',
    errUnknown: 'Sign in did not work. Try again.',
    confirmSent: 'Check your inbox to confirm your email. Then sign in here.',
    signedInToast: 'Signed in',
    // Signed in
    get cardPlan() {
      return priced('Plan', 'LU Cloud')
    },
    get planNone() {
      return priced('No active plan', 'Not active')
    },
    planActive: 'Active',
    get planUnknown() {
      return priced('Plan not loaded', 'Not loaded')
    },
    get credits() {
      return buyHinted('Cloud credits this period', 'Cloud credits')
    },
    get creditsEmpty() {
      return buyHinted('No credits left this period', 'No credits left')
    },
    creditsLeft: (left: string) => `${left} left`,
    creditsUsed: (used: string, limit: string) => `${used} of ${limit} used`,
    get topup() {
      return priced((amount: string) => `${amount} bought credits on top, they do not expire.`, (amount: string) => `${amount} extra credits on top.`)
    },
    get period() {
      return priced((period: string) => `Billing period ${period}`, (period: string) => `Period ${period}`)
    },
    offlineTitle: 'Offline, your session is kept',
    get offlineText() {
      return priced('LU could not reach LU Cloud. You stay signed in. Plan and credits show again when you are back online.', 'LU could not reach LU Cloud. You stay signed in. Your credits show again when you are back online.')
    },
    noPlanText: 'Pick a plan to use LU Cloud for chat, Create and voice.',
    manage: 'Manage subscription',
    viewPlans: 'View plans',
    addCredits: 'Add credits',
    pastDueTitle: 'Your last payment failed',
    payInvoice: 'Pay open invoice',
    syncMemories: 'Sync memories',
    syncMemoriesSub: 'Keep your memories on your account',
    /** M310: the account carries credits and memories, never chats (no chat sync between devices). */
    chatsStayHere: 'Chats stay on this phone',
    chatsStayHereSub: 'Your account keeps credits and memories, not chats. Chats in a browser or on your computer do not show up here.',
    chatsStayHereSubRemote: 'Your account keeps credits and memories, not chats. A chat on your computer comes here with Continue on phone, under Remote desktop.',
    contentPolicy: 'Content policy',
    apiKeysTitle: 'API keys',
    apiKeysText: 'Use your LU Cloud credits from other apps with an API key. Keys are made and removed on your account page.',
    openAccount: 'Open account on lu-labs.ai',
    refresh: 'Refresh account',
    signOut: 'Sign out',
    signOutQuestion: 'Sign out of LU Cloud?',
    signOutText: 'Chats and models on this phone stay. Cloud models, Create and voice need you to sign in again.',
    signOutConfirm: 'Sign out',
    signOutKeep: 'Stay signed in',
    signOutUnsyncedTitle: (n: number) => `${n} ${n === 1 ? 'memory is' : 'memories are'} not synced yet. Sign out anyway?`,
    signOutUnsyncedText: 'Memories that are not synced stay on this phone, but your other devices will not see them.',
    signOutSyncFirst: 'Sync first',
    signedOutToast: 'Signed out',
    signOutFailed: 'Sign out did not finish. The saved session is still on this phone, so you stay signed in. Try again.',
    // Delete account
    deleteRow: 'Delete account',
    deleteRowSub: 'Removes your LU Cloud account for good',
    deleteTitle: 'Delete account',
    deleteLead: 'This deletes your LU Cloud account for good. It cannot be undone.',
    deleteGoneTitle: 'What is deleted',
    get deleteGone() {
      return priced(['Your account and sign in', 'Your plan and any credits that are left', 'Images, video and audio you made on LU Cloud', 'Characters you trained', 'Memories synced to your account'], ['Your account and sign in', 'Your access to LU Cloud and any credits that are left', 'Images, video and audio you made on LU Cloud', 'Characters you trained', 'Memories synced to your account'])
    },
    deleteStaysTitle: 'What stays',
    deleteStays: 'Chats, models and settings on this phone stay. They never were on the account.',
    get deleteBilling() {
      return priced('A running subscription is cancelled together with the account. Deleting can take a moment.', 'Everything that runs on the account ends with it. Deleting can take a moment.')
    },
    deleteGo: 'Delete my account',
    deleteQuestion: 'Delete your account?',
    deleteQuestionText: (email: string) => `Type DELETE to remove the account ${email} and everything on it for good.`,
    deleteConfirm: 'Delete account',
    deleteKeep: 'Keep my account',
    deleteWord: 'DELETE',
    deleteWorking: 'Deleting your account',
    deleteDone: 'Your account is deleted',
    deleteOffline: 'No internet. Your account was not deleted. Try again when you are connected.',
    deleteExpired: 'Your session has expired, so nothing was deleted. Sign in again, then delete the account.',
    deleteFailed: (contact: string) => `The account could not be deleted. Nothing was removed. Try again, or write to ${contact}.`,
    deleteSignedOutTitle: 'Delete an account',
    get deleteSignedOut() {
      return linked('To delete your LU Cloud account, sign in here first. You can also delete it on the website.', 'To delete your LU Cloud account, sign in here first. You can also delete it in your browser.')
    },
    get deleteOnWebsite() {
      return linked('Delete account on lu-labs.ai', 'Delete account in your browser')
    },
    pausedPlain: 'LU Cloud is paused for this account.',
    deleteSignInAgain: 'Sign in again',
    // Sign in with Apple before a deletion (iPhone only, Apple 5.1.1(v))
    deleteAppleCancelled: 'Nothing was deleted. This account uses Sign in with Apple, and Apple asks once more so that LU can end that link too.',
    deleteWithoutApple: 'Delete without Apple',
    deleteAppleLeft: 'Your account is deleted. LU could not end Sign in with Apple for it. To end it yourself, open Settings on this iPhone, tap your name, then Sign-In & Security, then Sign in with Apple, and remove LU.',
    deleteClose: 'Close',
    pictureAlt: 'Your profile picture',
  },

  reset: {
    title: 'Reset password',
    intro: 'Enter the email of your LU Cloud account. LU sends a link to choose a new password.',
    send: 'Send reset link',
    sending: 'Sending',
    sentTitle: 'Check your inbox',
    sent: 'If this address has an account, an email is on its way.',
    sentNext: 'Open the link in that email on this phone. It brings you back to LU, where you choose the new password.',
    sentSpam: 'Nothing after a few minutes? Look in the spam folder, then send the link again.',
    again: 'Send again',
    /** Back in the app after the mail, and no link came with it (round 43). Maybe the mail is still unread: asked, not claimed. */
    notBack: 'Did the link open a web page instead of LU? Then the reset did not reach this app. Send a new link and open it on this phone.',
    retry: 'Try again',
    done: 'Done',
    cancel: 'Cancel',
    errEmail: 'Enter a valid email address.',
    errOffline: 'No internet. Try again when you are connected.',
    errTooMany: 'Too many requests for this address. Wait a few minutes, then try again.',
    errFailed: 'The link could not be requested. Try again in a moment.',
  },

  newPassword: {
    title: 'Choose a new password',
    text: (who: string) => (who ? `You opened the reset link for ${who}. Choose a new password.` : 'You opened the reset link. Choose a new password.'),
    label: 'New password',
    hint: 'At least 8 characters.',
    save: 'Save password',
    saving: 'Saving',
    saved: 'Password changed',
    notNow: 'Not now',
    notNowHint: 'You are signed in on this phone. Without a new password the old one stays.',
    errShort: 'The password needs at least 8 characters.',
    errSame: 'That is your current password. Choose a different one.',
    errWeak: 'This password is too easy to guess. Choose a longer one.',
    errExpired: 'This reset link is used up. Ask for a new one with Forgot password.',
    errOffline: 'No internet. Try again when you are connected.',
    errFailed: 'The password could not be saved. Try again in a moment.',
  },

  cloud: {
    title: 'LU Cloud',
    perMonth: 'per month',
    planHosted: 'Hosted',
    planPro: 'Pro',
    planMax: 'Max',
    planHostedText: 'Chat, Create and voice with the monthly credit budget.',
    planProText: 'More credits each month for regular image and video work.',
    planMaxText: 'The largest budget, for daily heavy use.',
    signIn: 'Sign in',
    signInSub: 'Already subscribed? Sign in with that account.',
    recheck: 'I already subscribed, check again',
    recheckPaid: 'I paid, check again',
    rechecking: 'Checking your account',
    get recheckNothing() {
      return priced('No active plan found on this account yet.', 'LU Cloud is not available for this account.')
    },
    payInvoice: 'Pay open invoice',
    notNow: 'Not now',
    signedInAs: (who: string) => `Signed in as ${who}.`,
    noPlan: 'This account has no active plan yet. LU Cloud is part of the paid plans.',
    get gated() {
      return priced('Your plan is active, but LU Cloud is not switched on for this account yet. Check again in a moment.', 'LU Cloud is not switched on for this account yet. Check again in a moment.')
    },
    get noQuota() {
      return priced('Your plan is active, but your credits could not be loaded just now. Check your connection, then check again.', 'Your credits could not be loaded just now. Check your connection, then check again.')
    },
    noBudget: 'Your plan is active, but it has no credits for LU Cloud. Plans with credits are on lu-labs.ai.',
    openAccount: 'Open your account',
    readyTitle: "You're in. Cloud is ready.",
    get readyText() {
      return priced('Turn on Cloud to chat, create and talk with LU hosted models. Answers are billed to your lu-labs.ai credits.', 'Turn on Cloud to chat, create and talk with LU hosted models. Answers use the credits of your account.')
    },
    turnOn: 'Turn on Cloud',
    alreadyOn: 'Cloud is on',
    turnOff: 'Go back on device',
    footer: 'Cancel anytime on lu-labs.ai. On device mode stays free and works offline.',
    offline: 'No internet. LU Cloud needs a connection.',
    noPlanPlain: 'This account cannot use LU Cloud.',
    footerPlain: 'On device mode stays free and works offline.',
    // Where the store allows no advertising for answers without limits: the catalogue, counted.
    benefitChat: (n: number) => `${n} chat models`,
    benefitVideo: (n: number) => `${n} video models`,
    benefitImage: (n: number) => `${n} image models`,
    // A build that lists only part of the catalogue: no count, because the counts are of the whole catalogue.
    benefitUncounted: 'Chat, image and video models on LU hardware',
    // The number band (round 51): one large total, the parts small below it. Numbers from parts/cloud-counts.ts.
    countLabel: 'AI models on LU Cloud',
    countChat: 'chat',
    countImage: 'image',
    countVideo: 'video',
    countSentence: (total: number, chat: number, image: number, video: number) => `${total} AI models on LU Cloud: ${chat} chat, ${image} image, ${video} video.`,
    // Open build only (switch unfilteredMarketing): a measurement, said as one, with its day (lib/no-refusals-measurement.md).
    measuredTag: (n: number) => `${n} answer without refusing, measured 10 Sep 2026`,
    say: 'Run models too large for this phone. Same app, one tap to switch.',
    benefitSameApp: 'Your chats stay in the same app. Switch back any time.',
    benefitFree: 'On device models stay free and work offline.',
    footerOpen: 'Cancel anytime on lu-labs.ai.',
    // The main button of the footer, signed out.
    getCloud: 'Get LU Cloud',
    fromPrice: (eur: number) => `From ${eur} EUR a month. Cancel anytime.`,
    createAccount: 'Create account',
    seePlans: 'See plans',
    // The sheet of plans (open build): the same three rows as the page.
    plansTitle: 'Choose a plan',
    planRow: (name: string, price: number, text: string) => `${name}, ${price} EUR per month. ${text}`,
  },

  // The moving preview of the page LU Cloud (round 51, cloud/CloudShowcase.tsx). Harmless and the same in every build.
  cloudShowcase: {
    label: 'Preview of LU Cloud',
    pick: 'Preview',
    chat: 'Chat',
    image: 'Image',
    video: 'Video',
    withCount: (kind: string, n: number) => `${kind}, ${n} models`,
    cloud: 'Cloud',
    chatSentence: 'Chat: a cloud model answers a question.',
    imageSentence: 'Image: a cloud model makes a picture from a sentence.',
    videoSentence: 'Video: a cloud model turns a picture into a short clip.',
    ask: 'Suggest a 3 day walk through Lisbon.',
    answer: ['Day 1: Alfama on foot, tram 28 at sunset.', 'Day 2: Belem in the morning, LX Factory after lunch.', 'Day 3: a day trip to Sintra by train.'],
    prompt: 'a ceramic cup on a wooden table, soft daylight',
    rendering: 'Rendering',
    time: '00:04 / 00:06',
  },

  cloudSwitch: {
    label: 'Cloud',
    nameOn: 'Cloud, on',
    nameOff: 'Cloud, off',
    question: 'Switch to Cloud?',
    get text() {
      return priced('Chat, Create and voice then run on LU hosted GPUs. Answers are billed to your lu-labs.ai credits.', 'Chat, Create and voice then run on LU hosted GPUs. Answers use the credits of your account.')
    },
    confirm: 'Switch to Cloud',
    stay: 'Stay on device',
    backOnDevice: 'Back on device',
    nowCloud: 'Cloud is on',
  },

  price: {
    get title() {
      return priced('Price of this answer', 'Credits for this answer')
    },
    get noModel() {
      return priced('No model is picked yet. Pick one to see what an answer costs.', 'No model is picked yet. Pick one to see what an answer uses.')
    },
    get local() {
      return priced('This model runs on this phone. Answers cost nothing.', 'This model runs on this phone. Answers use no credits.')
    },
    credits: 'This answer uses credits. How many depends on its length.',
    flashFree: (tokens: string) => `This model uses no credits on your plan, up to ${tokens} tokens a day.`,
    flashLeft: (left: string, total: string) => `${left} of ${total} free tokens left today.`,
    flashUsedUp: "Today's free allowance is used. This answer uses credits.",
    flashUnpaid: 'Flash models are free on a paid plan. This account uses credits.',
    get creditsLeft() {
      return buyHinted((left: string) => `${left} credits left this period.`, (left: string) => `${left} credits left.`)
    },
    get other() {
      return priced('This model is billed by its own provider, with your own key.', 'This model runs at its own provider, with your own key. It uses no LU Cloud credits.')
    },
    // Where the store allows no word about buying: the same facts without "plan".
    flashFreePlain: (tokens: string) => `This model uses no credits for this account, up to ${tokens} tokens a day.`,
    flashUnpaidPlain: 'This answer uses credits. How many depends on its length.',
    get creditsNone() {
      return buyHinted('No credits are left this period.', 'No credits are left.')
    },
    plans: 'See plans and packs',
    changeModel: 'Change model',
    close: 'Close',
  },

  appearance: {
    title: 'Appearance',
    theme: 'Theme',
    system: 'System',
    dark: 'Dark',
    light: 'Light',
    themeHint: 'System follows the light or dark setting of this phone.',
    textSize: 'Text size follows your phone settings.',
    picture: 'Profile picture',
    pictureSub: 'Shown on your account in Settings',
    pictureChoose: 'Choose a photo',
    pictureChange: 'Change photo',
    pictureRemove: 'Remove',
    pictureRemoved: 'Profile picture removed',
    pictureSet: 'Profile picture set',
    pictureFailed: 'This photo could not be read. Pick another one.',
    cloudTeasers: 'Show Cloud features while on device',
    cloudTeasersSub: 'Cloud models and Create stay visible when Cloud is off',
    cloudTeasersHint: 'Cloud features are hidden while on device. Turn them back on here, under Settings, Appearance.',
  },

  chat: {
    title: 'Chat defaults',
    intro: 'These apply to every new answer, on device and in the cloud.',
    temperature: 'Temperature',
    temperatureHint: 'Low is focused, high is more varied.',
    topP: 'Top P',
    topK: 'Top K',
    maxTokens: 'Max length',
    maxTokensHint: 'Longest answer in tokens. 0 lets the model decide.',
    maxTokensAuto: 'Auto',
    compact: 'Compact automatically at',
    compactHint: 'When a chat fills this share of the model memory, LU sums up the older part. 0 turns it off.',
    compactOff: 'Off',
    readAloud: 'Read every answer aloud',
    readAloudSub: 'Switched under Voice, with the voice that reads',
    reset: 'Reset chat defaults',
    resetQuestion: 'Reset chat defaults?',
    resetText: 'Temperature, Top P, Top K, max length and automatic compacting go back to their defaults.',
    resetConfirm: 'Reset',
    resetDone: 'Chat defaults reset',
  },

  voice: {
    title: 'Voice',
    intro: 'Dictation and Cloud voices run on LU Cloud.',
    introPhoneVoice: 'Reading aloud works with the voice of this phone, free and offline. Dictation and Cloud voices run on LU Cloud.',
    introCloudOnly: 'Dictation and reading aloud run on LU Cloud. No voice was found on this phone.',
    cost: 'Dictation and Cloud voice use credits. A fixed amount per request.',
    signedOutTitle: 'Sign in for dictation and Cloud voices',
    get signedOutText() {
      return priced('They run on LU Cloud and need an account with credits. The voice of this phone reads answers without an account.', 'They run on LU Cloud and need you to be signed in. The voice of this phone reads answers without an account.')
    },
    signedOutTitleNoVoice: 'Sign in to use voice',
    get signedOutTextNoVoice() {
      return priced('Dictation and reading aloud run on LU Cloud and need an account with credits.', 'Dictation and reading aloud run on LU Cloud and need you to be signed in.')
    },
    noPlanTitle: 'Voice needs LU Cloud',
    get noPlanText() {
      return buyHinted('This account has no credits for LU Cloud yet.', 'This account has no credits for LU Cloud.')
    },
    get seePlans() {
      return priced('See plans', 'About LU Cloud')
    },
    dictation: 'Dictation',
    dictationReady: 'Ready. Tap the microphone in the message box.',
    dictationNeedsCloud: 'Needs LU Cloud',
    dictationOn: 'On',
    dictationOff: 'Off',
    dictationSignedOut: 'Off. Dictation runs on LU Cloud. Sign in to use it.',
    get dictationNoPlan() {
      return buyHinted('Off. Dictation runs on LU Cloud, and this account has no credits for it yet.', 'Off. Dictation runs on LU Cloud, and this account has no credits for it.')
    },
    dictationBlocked: 'Off. The microphone is blocked for LU. Allow it in the system settings of this phone.',
    dictationOffline: 'Off right now. Dictation needs internet.',
    dictationChecking: 'Checking your account',
    dictationWhy: 'There is no switch for dictation. The microphone in the message box starts it when LU Cloud is usable, and says what is missing when it is not.',
    stateGroup: 'Voice',
    readAloud: 'Read aloud',
    readAloudSub: 'Show the speaker button on answers',
    auto: 'Read every answer aloud',
    autoSub: 'Starts by itself when an answer is done',
    voiceGroup: 'Cloud voice',
    preview: 'Preview',
    previewOf: (voice: string) => `Preview ${voice}`,
    stop: 'Stop',
    stopPreview: 'Stop preview',
    previewText: 'Hello. This is how I sound when I read an answer to you.',
    previewLoading: 'Loading preview',
    previewFailed: 'The preview could not be played. Check the connection and try again.',
    previewNoCredits: 'You are out of credits, so the preview could not be played.',
    previewOffline: 'No internet. The preview needs a connection.',
    previewNeedsConsent: 'Nothing was sent. The preview runs on LU Cloud, and LU needs your consent for that.',
    test: 'Test voice',
    testSystem: 'Test system voice',
    readAloudOff: 'Turn on Read aloud first',
    readAloudNoVoice: 'Needs a voice. Sign in to LU Cloud, or install a voice on this phone.',
    phoneGroup: 'Voice of this phone',
    phoneLooking: 'Looking for the voices of this phone',
    phoneDefault: 'Default voice of this phone',
    phoneShowAll: (n: number) => `Show all ${n} voices`,
    phoneShowFewer: 'Show fewer voices',
    phoneNoneTitle: 'No voice on this phone',
    phoneNoneText: 'This phone has no voice installed. Install one in the system settings of this phone under text to speech, or use a Cloud voice.',
    phoneLookAgain: 'Look again',
    phoneFailed: 'The voice of this phone could not be played. Check the volume and the text to speech settings of this phone.',
    voiceNeedsCloud: 'Cloud voices need LU Cloud',
    systemGroup: 'System voice',
    remoteGroup: 'Voice with your computer',
    remoteReadAloud: 'Read the answer aloud',
    remoteReadAloudSub: 'When you speak to LU on your computer, its answer is read aloud. With the voice of this phone, or the voice of the computer when this phone has none.',
    remoteHow: 'In a chat with your computer, hold the microphone to talk and let go to send. Tap it to talk hands free: LU listens, answers and listens again until you tap End. Your computer writes down what you say, nothing goes to LU Cloud.',
    speed: 'Speed',
    pitch: 'Pitch',
    systemVoiceNote: 'Speed and pitch apply to the system voice.',
    systemVoiceNoteSpeed: 'Speed applies to the voice of this phone. Cloud voices keep their own speed.',
    phoneVoiceOnline: 'needs internet',
    systemVoice: 'Use the system voice when Cloud is off',
    systemVoiceSub: 'The voice built into this phone, free and offline',
    systemVoiceOn: 'While Cloud is off or does not answer, answers are read by the voice of this phone.',
    systemVoiceOff: 'Reading aloud then only works with LU Cloud. Without it nothing is read.',
    micDeniedTitle: 'Microphone is blocked',
    micDeniedText: 'LU may not use the microphone. Allow it in the system settings of this phone to dictate.',
    openSystemSettings: 'Open system settings',
    systemSettingsFailed: 'Open the settings of this phone, then Apps, LU, Permissions.',
  },

  providers: {
    title: 'Providers',
    intro: 'LU runs models on this phone and on LU Cloud. You can also add your own key for another provider.',
    groupBuiltIn: 'Built in',
    groupOwn: 'Your own keys',
    engine: 'On device engine',
    engineSub: 'Models that run on this phone',
    cloud: 'LU Cloud',
    cloudOn: 'Signed in',
    cloudOff: 'Not signed in',
    custom: 'Custom endpoint',
    stateOn: 'On',
    stateOff: 'Off',
    stateKeyMissing: 'Key missing',
    stateKeySaved: 'Key saved',
    stateNotSetUp: 'Not set up',
    use: 'Use this provider',
    useNeedsKey: 'Add an API key first',
    useNeedsUrl: 'Add the base URL first',
    apiKey: 'API key',
    keySaved: 'A key is saved on this phone. It is never shown again.',
    keyNone: 'No key saved.',
    keyReplace: 'Replace key',
    keyNew: 'New API key',
    paste: 'Paste',
    keySave: 'Save key',
    keySavedToast: 'Key saved',
    keyRemove: 'Remove key',
    keyRemoveQuestion: 'Remove this key?',
    keyRemoveText: 'The key is deleted from this phone. The provider is turned off.',
    keyRemoveConfirm: 'Remove key',
    keyRemovedToast: 'Key removed',
    keyStorage: 'Keys are kept in the secure storage of this phone where it is available.',
    baseUrl: 'Base URL',
    baseUrlHint: 'Must start with https, or be a device on your network',
    baseUrlPlaceholder: 'https://example.com/v1',
    baseUrlInvalid: 'Enter an address that starts with https, or a device on your network.',
    baseUrlSave: 'Save address',
    baseUrlSaved: 'Address saved',
    baseUrlSavedKeyGone: 'Address saved. The key belonged to the old address and was removed.',
    test: 'Test connection',
    testing: 'Testing the connection',
    testNeedsKey: 'Add an API key first',
    testOk: (n: number) => `Connected. ${n} ${n === 1 ? 'model' : 'models'} found.`,
    testOkPlain: 'Connected. The key works.',
    testBadKey: 'The key was not accepted. Check it and save it again.',
    testUnreachable: 'The provider did not answer. Check the address and your connection.',
    testOffline: 'No internet. The test needs a connection.',
    remove: 'Remove provider',
    removeQuestion: 'Remove this provider?',
    removeText: 'Its key and address are deleted from this phone.',
    removeConfirm: 'Remove provider',
    removedToast: 'Provider removed',
    unknown: 'This provider does not exist.',
    backToList: 'Back to providers',
    get compatNote() {
      return priced('When this is on, its models show up in the model list. Your messages and attachments are then sent to this provider, and answers are billed by it.', 'When this is on, its models show up in the model list. Your messages and attachments are then sent to this provider, under its own terms.')
    },
    get anthropicNote() {
      return priced('When this is on, its models show up in the model list. Your messages and attachments are then sent to this provider, and answers are billed by it.', 'When this is on, its models show up in the model list. Your messages and attachments are then sent to this provider, under its own terms.')
    },
  },

  remote: {
    title: 'Remote desktop',
    intro: 'Use the models of your own computer from this phone. Chats then run on the computer, not here.',
    stateOff: 'Not connected',
    stateOffText: 'No desktop is paired with this phone.',
    stateConnected: (name: string) => `Connected to ${name}`,
    statePaired: (name: string) => `Paired with ${name}, not connected`,
    stateConnecting: 'Connecting',
    stateNeedsCode: (name: string) => `${name} asks for the pairing code`,
    stateBlocked: (name: string) => `${name} has locked this session. Pair again on the desktop.`,
    stateOffline: (name: string) => `${name} does not answer right now`,
    lastSeen: (when: string) => `Last reached ${when}`,
    stepConnected: 'Chats under Remote desktop run on the computer.',
    stepPaired: 'Tap Connect to use it again.',
    stepNeedsCode: 'Tap Enter code and type the code the desktop shows.',
    stepBlocked: 'Tap Connect and pair with a new code.',
    stepOffline: 'Check that the computer is on, that LU is open there and that both are on the same Wi-Fi. Then tap Try again.',
    retry: 'Try again',
    retrying: 'Trying',
    stillOffline: (name: string) => `${name} still does not answer`,
    enterCode: 'Enter code',
    connect: 'Connect',
    openChats: 'Open remote chats',
    disconnect: 'Disconnect',
    disconnected: 'Disconnected',
    // Sealed channel (3.0.7): ending it means unpairing, at the computer too.
    unpair: 'Unpair this phone',
    unpaired: 'Unpaired. Your computer no longer knows this phone.',
    forgetTextSealed: 'This phone is also removed from the list on your computer, if it can be reached now. To use it again, pair with the QR code.',
    how: 'How it works',
    forget: 'Forget this desktop',
    forgetQuestion: 'Forget this desktop?',
    forgetText: 'The pairing and the remote chats kept on this phone are removed. The desktop itself is not touched.',
    forgetConfirm: 'Forget',
    forgotten: 'Desktop forgotten',
  },

  data: {
    title: 'Backup and import',
    groupBackup: 'Your chats',
    backup: 'Back up all chats',
    backupSub: 'One file with every chat, to keep or move',
    backupNone: 'There are no chats to back up yet.',
    backupWorking: 'Preparing the backup',
    backupDownloaded: (n: number) => `Backup of ${n} ${n === 1 ? 'chat' : 'chats'} downloaded`,
    backupCancelled: 'Backup was not saved',
    backupFailed: 'The backup could not be shared from this phone.',
    backupSave: 'Save backup to this phone',
    backupSavedToast: (n: number) => `Backup of ${n} ${n === 1 ? 'chat' : 'chats'} saved`,
    backupSaveSub: 'You pick the folder. Restore finds the file there.',
    backupShareTitle: 'Share backup',
    backupShareSub: 'Send the file to another app or device',
    backupSavedPicked: (n: number, name: string) => `Backup of ${n} ${n === 1 ? 'chat' : 'chats'} saved as ${name} in the folder you picked.`,
    backupSavedDownloads: (n: number, name: string) => `Backup of ${n} ${n === 1 ? 'chat' : 'chats'} downloaded as ${name}. It is in the downloads of this browser.`,
    backupSaveCancelled: 'Nothing was saved. The save dialog was closed without picking a folder.',
    backupSaveUnavailable: 'This phone cannot save a file to a folder from here. Use Share backup and pick Files or another app.',
    backupSaveFailed: 'The backup could not be written to that folder. Pick another folder, or use Share backup.',
    backupSharedNote: (n: number, name: string) => `Backup of ${n} ${n === 1 ? 'chat' : 'chats'} handed to the share sheet as ${name}. Where it is kept depends on the app you picked.`,
    backupRestoreHint: 'To get it back, tap Restore from a backup file and pick that file.',
    restore: 'Restore from a backup file',
    restoreSub: 'Pick a backup made by LU',
    restoreReading: 'Reading the file',
    restoreFound: (n: number) => `${n} ${n === 1 ? 'chat' : 'chats'} found`,
    restoreFoundText: 'Chats you already have are kept. Newer copies from the file replace older ones.',
    restoreConfirm: 'Restore',
    restoreCancel: 'Cancel',
    restoreDone: (added: number, skipped: number) =>
      added > 0
        ? `${added} ${added === 1 ? 'chat' : 'chats'} restored${skipped ? `, ${skipped} already here` : ''}`
        : `Nothing new. All ${skipped} ${skipped === 1 ? 'chat was' : 'chats were'} already here.`,
    restoreWriting: 'Saving the chats on this phone. Keep LU open.',
    restoreNotSaved: 'The chats are in your list, but they could not be saved on this phone. Free some storage, then restore the file again.',
    fileUnreadable: 'This file could not be read.',
    fileNotJson: 'This is not a backup file. Pick a file that LU made as a backup of your chats.',
    fileNoChats: 'No chats were found in this file.',
    importOther: 'Import from ChatGPT, Claude or Gemini',
    importOtherSub: 'Bring over an export from another app',
    groupAuto: 'Automatic backup',
    autoLabel: 'Automatic backup',
    autoNever: 'Not written yet since LU was opened',
    autoNeedsApp: 'Written by the installed app, not in this preview',
    autoAt: (when: string) => `Last written ${when}`,
    autoText: 'LU keeps a copy of chats and settings in its own folder on this phone and restores it if the app storage is lost. Keys and passwords are never part of it.',
    autoNow: 'Back up now',
    autoDone: 'Backup written',
    autoUnavailable: 'The automatic backup is not available on this device.',
    // C46: the chats of the automatic backup that are not in the list. Chats deleted on purpose are not offered.
    rescue: 'Restore chats from the automatic backup',
    rescueLooking: 'Looking in the backup',
    rescueFound: (n: number) => `${n} ${n === 1 ? 'chat' : 'chats'} not in your list`,
    rescueNone: 'Every chat of the backup is in your list',
    rescueUnreadable: 'The backup could not be read',
    rescueWorking: 'Restoring',
    rescueDone: (n: number) => `${n} ${n === 1 ? 'chat' : 'chats'} restored`,
    today: 'today',
    yesterday: 'yesterday',
    groupDanger: 'Delete',
    deleteAll: 'Delete all chats',
    deleteAllSub: (n: number) => (n === 0 ? 'There are no chats' : `${n} ${n === 1 ? 'chat' : 'chats'} on this phone`),
    deleteQuestion: 'Delete all chats?',
    deleteText: 'Every chat on this phone is removed, and the unsent draft in Create with its photos. Models and settings stay. This cannot be undone.',
    deleteConfirm: 'Go on',
    deleteQuestion2: 'Really delete everything?',
    deleteText2: 'Last step. Type DELETE to remove all chats for good.',
    deleteConfirm2: 'Delete all chats',
    deleteKeep: 'Keep my chats',
    deleteWord: 'DELETE',
    deleted: (n: number) => `${n} ${n === 1 ? 'chat' : 'chats'} deleted`,
    deleting: 'Deleting the chats on this phone',
    deleteNotSaved: 'The chats are gone from the list, but the change could not be saved on this phone. Keep LU open and delete them again.',
  },

  dataImport: {
    title: 'Import chats',
    intro: 'Pick the export file from ChatGPT, Claude or Gemini. A .json file or the .zip as you got it.',
    stays: 'The file is read on this phone and is not uploaded.',
    choose: 'Choose export file',
    chooseAnother: 'Choose another file',
    reading: 'Reading the export',
    tooLarge: 'This export is very large. Keep LU open until it is done.',
    unreadable: 'This file could not be read. Pick the export as you downloaded it.',
    empty: 'No chats were found. LU reads exports from ChatGPT, Claude and Gemini.',
    found: (n: number, from: string) => `${n} ${n === 1 ? 'chat' : 'chats'} found${from ? ` from ${from}` : ''}`,
    skipped: (n: number) => `${n} ${n === 1 ? 'entry' : 'entries'} could not be read and ${n === 1 ? 'is' : 'are'} left out.`,
    searchable: 'Make them searchable in chat',
    searchableSub: 'Adds them as documents to one chat. Needs the document model.',
    searchableUnavailable: 'Open Documents in a chat once to set up the document model',
    import: 'Import',
    importN: (n: number) => `Import ${n} ${n === 1 ? 'chat' : 'chats'}`,
    importing: 'Importing',
    progress: (done: number, total: number) => `${done} of ${total}`,
    cancel: 'Cancel',
    cancelled: (n: number) => `Stopped. ${n} ${n === 1 ? 'chat' : 'chats'} imported.`,
    done: (n: number) => `${n} ${n === 1 ? 'chat' : 'chats'} imported`,
    doneText: 'They are in your chat list, marked with where they came from.',
    saving: 'Saving the chats on this phone',
    notSaved: 'The chats are in your list, but they could not be saved on this phone. Free some storage, then import the file again.',
    indexFailed: (n: number) => `${n} could not be made searchable. They are still in your chat list.`,
    indexNotKept: (n: number) => `LU could not save ${n} of them on this phone, so ${n === 1 ? 'it cannot' : 'they cannot'} be searched. LU needs a restart before it can save documents again. The chats are still in your chat list.`,
    openChats: 'Open chats',
    platformChatgpt: 'ChatGPT',
    platformClaude: 'Claude',
    platformGemini: 'Gemini',
    importedTitle: (from: string, title: string) => (from ? `${title} (${from})` : title),
    searchChatTitle: 'Imported chats',
  },

  privacy: {
    title: 'Privacy',
    onDeviceTitle: 'What stays on this phone',
    onDevice:
      'Chats, documents, memories, settings and the models you download are stored on this phone. With an on device model, what you write is processed here and is not sent anywhere.',
    cloudTitle: 'What is sent when Cloud is on',
    cloud:
      'With Cloud on, your message, the chat so far and any files you attach go to LU Cloud to be answered. Create sends your prompt and source images. Voice sends the recording or the text to read. Your account email and your credit use are known to LU Cloud.',
    ownKeysTitle: 'Your own providers',
    ownKeys: 'With your own key for another provider, your messages go to that provider under its terms. LU does not see them.',
    counterTitle: 'The anonymous counter',
    counter:
      'LU counts one thing: taps on the Cloud switch. A tap sends which way the switch went, the platform and the app version. No account, no content, no device ID. Nothing is sent before you tap that switch, so a phone that never touches it is never counted. You can turn the counter off here.',
    counterSwitch: 'Send anonymous switch count',
    counterSwitchSub: 'Counts presses of the Cloud switch, nothing else',
    backupTitle: 'The backup',
    backup:
      'LU keeps a backup of your chats and settings in its own app folder on this phone. The backup of the phone itself may take that folder along. Keys, passwords and your sign in are never written into it. A backup file of your chats leaves the phone only when you share it yourself.',
    counterOn: 'The switch count is on',
    counterOff: 'The switch count is off',
    nothingElse: 'Apart from that one counter LU has no analytics. No ad tracking, and your chats are not read for training.',
    nothingElseOff: 'With the counter off LU has no analytics at all. No ad tracking, and your chats are not read for training.',
    policy: 'Open privacy policy',
    aiTitle: 'AI data sharing',
    aiText: 'Before content goes to LU Cloud for the first time, LU asks you. You can take your answer back here at any time.',
    aiRow: 'AI data sharing',
    aiAllowedSince: (when: string) => `Allowed since ${when}`,
    aiAllowed: 'Allowed',
    aiNotAllowed: 'Not allowed yet. LU asks before the first Cloud request.',
    aiNotNeeded: 'This version does not ask',
    aiWithdraw: 'Withdraw',
    aiWithdrawQuestion: 'Withdraw your consent?',
    aiWithdrawText: 'LU then asks again before it sends anything to LU Cloud. On device chat is not affected.',
    aiWithdrawConfirm: 'Withdraw',
    aiWithdrawn: 'Consent withdrawn',
    aiAllow: 'Allow now',
    aiAllowedToast: 'Allowed',
  },

  contentPolicy: {
    title: 'Content policy',
    intro: 'Sets how LU Cloud treats sensitive requests for this account. On device models are not affected.',
    group: 'Content policy',
    strict: 'Strict',
    strictText: 'Blocks more than the default',
    standard: 'Standard',
    standardText: 'The default',
    off: 'Off',
    offText: 'No filter on what the models write',
    signedOutTitle: 'Sign in to change this',
    signedOutText: 'The content policy belongs to your LU Cloud account.',
    loading: 'Loading your setting',
    loadFailed: 'Your setting could not be loaded. Check the connection and try again.',
    saving: 'Saving',
    saved: 'Content policy saved',
    saveFailed: 'This could not be saved. Your setting is unchanged.',
    fixedTitle: 'Current level',
    get fixedText() {
      return linked('The content policy of this account is managed in your account on the website. In this app Create never goes looser than Standard.', 'In this app Create always uses the Standard filter, or Strict when the account is set to it.')
    },
    fixedOpen: 'Open account on lu-labs.ai',
    offElsewhere: 'This account is set to Off on the website. In this app Create uses the Standard filter anyway. Here you can pick Strict or Standard.',
    ageQuestion: 'Are you 18 or older?',
    ageText: 'Off removes the filter on what the models write. LU Cloud asks you to confirm your age for this.',
    ageConfirm: 'I am 18 or older',
    ageCancel: 'Keep the filter',
  },

  troubleshooting: {
    title: 'Troubleshooting',
    groupChecks: 'Checks',
    checkEngine: 'On device engine',
    checkInternet: 'Internet',
    checkCloud: 'LU Cloud',
    running: 'Checking',
    engineReady: (model: string) => `Running with ${model}`,
    engineIdle: 'Ready. No model is loaded.',
    engineDown: 'The engine did not answer. Open Models and load a model.',
    engineUnavailable: 'The engine is part of the installed app and cannot be checked here.',
    internetOk: 'Connected',
    internetOff: 'No internet. On device models still work.',
    cloudOk: 'Reachable',
    cloudSignedIn: 'Reachable, and you are signed in',
    cloudDown: 'LU Cloud did not answer. Try again in a moment.',
    cloudOffline: 'Not checked without internet',
    stateOk: 'OK',
    stateWarn: 'Check',
    stateBad: 'Problem',
    stateBusy: 'Checking',
    runAgain: 'Run checks again',
    checkedAt: (time: string) => `Checked again at ${time}`,
    readAt: (time: string) => `Figures read again at ${time}`,
    shareLog: 'Share log',
    shareLogSub: 'The end of the app log and the last crash record, for support',
    appLogHeading: 'App log',
    appLogMissing: 'The log file of the app could not be read here. What follows is what this session recorded.',
    appLogTruncated: (lines: number) => `Only the last ${lines} lines are included.`,
    logShared: 'Log handed over',
    logCancelled: 'Log was not shared',
    logFailed: 'The log could not be shared from this phone.',
    logNoErrors: 'No errors were recorded since LU was opened.',
    logHeading: 'Errors since LU was opened',
    storageHeading: 'Storage writes that failed',
    copyDetails: 'Copy details',
    copyDetailsSub: 'Version, device and storage',
    detailsCopied: 'Details copied',
    setupAgain: 'Run setup again',
    setupAgainSub: 'Models you already have are found again',
    setupQuestion: 'Run setup again?',
    setupText: 'The first steps of LU start over. Your chats, models and settings stay.',
    setupConfirm: 'Start setup',
    reset: 'Reset all settings',
    resetSub: 'Chats and models stay',
    resetQuestion: 'Reset all settings?',
    resetText: 'Every setting goes back to its default. Your chats and models stay.',
    // Only said to someone who is signed in (second check on Android, F13: signed out it promised a session that is not there).
    resetTextSignedIn: 'Every setting goes back to its default. Your chats and models stay. You stay signed in.',
    resetConfirm: 'Reset settings',
    resetDone: 'Settings reset',
    groupActions: 'Help yourself',
    // Diagnostics
    diagTitle: 'Diagnostics',
    diagIntro: 'What LU knows about this phone and the engine. Nothing here is sent anywhere.',
    device: 'Device',
    appVersion: 'App version',
    storePreset: 'Build',
    memory: 'Memory',
    memoryFree: 'Memory available to LU',
    storageFree: 'Storage free',
    storageUsed: 'Storage used by LU',
    storageBreakdown: (models: string, rest: string) => `Models ${models}, chats and files ${rest}`,
    storageModelsOnly: (models: string) => `Models ${models}. This phone does not report the size of chats and files.`,
    storageWithoutModels: 'Chats and files. The size of the models could not be read.',
    accelerator: 'Accelerator',
    accelGpu: 'Graphics acceleration',
    accelCpu: 'Processor',
    accelCpuFallback: 'Processor, graphics acceleration failed the self test',
    modelLoaded: 'Model loaded',
    modelFile: 'Model file',
    noModel: 'No model loaded',
    contextLoaded: (ctx: string) => `context ${ctx}`,
    lastSpeed: 'Last speed',
    speedValue: (tps: string) => `${tps} tokens per second`,
    speedFrom: (model: string) => `measured with ${model}`,
    speedNone: 'Not measured yet',
    estimated: 'estimated by the browser',
    needsApp: 'Shown in the installed app',
    notReported: 'This phone does not report it',
    simulatorSilent: 'A simulator does not report it',
    simulator: 'Simulator',
    engineSilent: 'The engine did not answer',
    chip: (name: string) => `Chip ${name}`,
    memoryLow: 'The phone says memory is low right now',
    storageOf: (total: string) => `of ${total}`,
    textSize: 'Text size',
    textSizeFollows: 'follows the setting of this phone',
    textSizePhone: (percent: string) => `the phone asks for ${percent}`,
    lastCrash: 'Last unexpected end',
    lastCrashNone: 'None recorded',
    lastCrashNote: 'The full record is part of Share log',
    selfTest: 'Run engine self test',
    selfTestRunning: 'Testing the engine. Keep LU open.',
    selfTestNoEngine: 'The self test needs the installed app.',
    selfTestNoModel: 'No model is installed. Download one under Models first.',
    selfTestBusy: 'A chat is answering right now. Try again when it is done.',
    selfTestPassedGpu: (tps: string) => `Passed with graphics acceleration, ${tps} tokens per second.`,
    selfTestPassedCpu: (tps: string) => `Passed on the processor, ${tps} tokens per second.`,
    selfTestPassedCpuFallback: (tps: string) => `Passed on the processor after graphics acceleration failed, ${tps} tokens per second.`,
    selfTestFailed: (why: string) => `Failed. ${why}`,
    selfTestFailedPlain: 'The engine did not answer the test question.',
    copyReport: 'Copy report',
    reportCopied: 'Report copied',
    shareReport: 'Share report',
    reportShared: 'Report handed over',
    reportTitle: 'LU diagnostics report',
    reportFailed: 'The report could not be shared from this phone.',
    reportCancelled: 'Report was not shared',
    platform: 'System',
    selfTestRow: 'Engine self test',
    selfTestNever: 'Not run yet',
    engineOff: 'Engine is not running',
    refresh: 'Refresh',
  },

  about: {
    title: 'About LU',
    get name() {
      return marketed('Locally Uncensored', 'LU')
    },
    tagline: 'Private AI on your phone.',
    version: 'Version',
    versionCopy: (v: string) => `Version ${v}, tap to copy`,
    versionCopied: 'Version copied',
    storeBuild: 'Build',
    storeBuildNames: { open: 'Open build', play: 'Google Play build', appstore: 'App Store build' },
    whatsNew: 'What is new',
    licenses: 'Licenses',
    website: 'Website',
    source: 'Source code',
    // The row leaves the app, so it says where to, like the three rows around it (second check on Android, F3).
    sourceOpens: 'Opens github.com in your browser',
    updates: 'Updates come through the store you installed LU from.',
    license: 'LU is free software under the GNU Affero General Public License, version 3.',
    contactGroup: 'Contact',
    contact: 'Contact support',
    privacyPolicy: 'Privacy policy',
    terms: 'Terms of use',
    contactCopied: 'Address copied',
    contactFailed: (address: string) => `No mail app opened. Write to ${address}.`,
    contactCopy: 'Copy address',
    contactCopySub: 'For any mail app or messenger',
  },

  licenses: {
    title: 'Licenses',
    intro: 'LU is built on open source software. Thank you to everyone who made these.',
    get own() {
      return marketed('Locally Uncensored', 'LU')
    },
    ownLicense: 'GNU Affero General Public License, version 3',
    full: 'Read the full license texts',
    group: 'Built with',
  },

  whatsNew: {
    title: 'What is new',
    version: (v: string) => `Version ${v}`,
    gotIt: 'Got it',
    empty: 'Nothing new to report for this version.',
  },

  credits: {
    titleCredits: "You're out of credits",
    titleVideo: "This month's video budget is used up",
    titleTrain: 'Top up to keep training',
    textCredits: 'LU Cloud refused this request because your credits are used up. Plan credits refill on your renewal date. Bought credits never expire.',
    textVideo: 'The monthly video share of your plan is used up. Bought credits are not tied to it and keep video going.',
    textTrain: 'No included training run is left, and your bought credits do not cover this one.',
    titleTrainPlain: 'No training run is left',
    textCreditsPlain: 'LU Cloud refused this request because the credits of this account are used up.',
    get textVideoPlain() {
      return buyHinted('The video share of this account is used up for this period.', 'The video share of this account is used up.')
    },
    textTrainPlain: 'No training run is left on this account.',
    get kept() {
      return priced('Your message is kept in the box. On device models still work and cost nothing.', 'Your message is kept in the box. On device models still work and use no credits.')
    },
    plans: 'See plans and packs',
    onDevice: 'Switch to an on device model',
    notNow: 'Not now',
  },

  session: {
    title: 'Please sign in again',
    text: 'Your LU Cloud session has expired. Sign in again to keep using Cloud models, Create and voice.',
    kept: 'Chats and models on this phone are untouched. Your message is kept in the box.',
    signIn: 'Sign in',
    onDevice: 'Continue on device',
    nowOnDevice: 'Back on device',
  },

  /**
   * Credits as an in-app purchase of the system (store switch purchase: 'in-app', iOS, round 17).
   * Shown in the sheet "Add credits" and on its three buttons, nowhere else. No price stands here:
   * the price of a pack is the text of the store. No sentence names another place to buy.
   */
  iap: {
    title: 'Add credits',
    open: 'Add credits',
    lead: 'Credits are added to your LU account and work on every device you sign in on.',
    loading: 'Loading packs',
    emptyTitle: 'No packs right now',
    emptyText: 'There is nothing to add at the moment. Try again later.',
    loadErrorTitle: 'The packs could not be loaded',
    retry: 'Try again',
    notAllowed: 'In-app purchases are turned off on this device. Check Screen Time in the system settings.',
    packLabel: (name: string, price: string) => `${name}, ${price}`,
    buying: 'Waiting for the App Store',
    creditedTitle: 'Credits added',
    creditedText: 'The credits are on your account now.',
    pendingTitle: 'Waiting for approval',
    pendingText: 'This purchase needs approval first, for example with Ask to Buy. The credits are added as soon as it is approved.',
    late: 'Your purchase went through. Adding the credits is taking longer than usual. We will keep trying.',
    restore: 'Restore purchase',
    restoring: 'Checking for open purchases',
    restoreNothing: 'No open purchase was found.',
    restoreFailed: 'The App Store could not be reached. Check your connection, then try again.',
    signIn: 'Sign in to your account, then add credits.',
    close: 'Close',
  },

  store: {
    /** The ONE sentence about buying a build may show without a link (purchase: 'text-only'). */
    plansOnWebsite: POLICY.plansOnWebsite,
  },

  linkOffer: {
    titleRemote: (address: string) => `Connect to ${address}?`,
    textRemote: 'A link asked LU to connect to this desktop. Only continue if you opened the link yourself.',
    titleGone: 'This link has expired',
    textGone: 'Links are valid for 5 minutes. Start again from the page you came from.',
    unreadable: 'This link could not be read. Type the address on the Connect page instead.',
    continue: 'Continue',
    dismiss: 'Dismiss',
  },
} as const

export type SettingsStrings = typeof SETTINGS_STRINGS