mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #35158 from overleaf/oa-compile-timeout-final
[web] Compile timeout CTA GitOrigin-RevId: f64c651332a32c293da1f3256cf9443413878d63
This commit is contained in:
@@ -490,7 +490,6 @@ const _ProjectController = {
|
||||
'export-html',
|
||||
'command-palette',
|
||||
'overleaf-library',
|
||||
'compile-timeout-cta',
|
||||
'focus-mode',
|
||||
'editor-upgrade-button-relocation',
|
||||
'markdown-visual',
|
||||
|
||||
@@ -651,7 +651,6 @@
|
||||
"expires": "",
|
||||
"expires_in_days": "",
|
||||
"expires_on": "",
|
||||
"explore_plans": "",
|
||||
"export_as_docx": "",
|
||||
"export_as_html": "",
|
||||
"export_as_markdown": "",
|
||||
|
||||
+5
-20
@@ -8,7 +8,7 @@ import getMeta from '@/utils/meta'
|
||||
import { populateEditorRedesignSegmentation } from '@/shared/hooks/use-editor-analytics'
|
||||
import CompileTimeoutPaywallModal from '@/features/pdf-preview/components/compile-timeout-paywall-modal'
|
||||
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
||||
import { useSplitTest } from '@/shared/context/split-test-context'
|
||||
import { useUserContext } from '@/shared/context/user-context'
|
||||
|
||||
function TimeoutUpgradePromptNew() {
|
||||
const { isProjectOwner } = useDetachCompileContext()
|
||||
@@ -61,27 +61,12 @@ const CompileTimeout = memo(function CompileTimeout({
|
||||
isCompileTimeoutTargetPlansEnabled,
|
||||
}: CompileTimeoutProps) {
|
||||
const { t } = useTranslation()
|
||||
const { variant } = useSplitTest('compile-timeout-cta')
|
||||
const user = useUserContext()
|
||||
|
||||
let ctaLabel = ''
|
||||
let ctaLabel = user.allowedFreeTrial
|
||||
? t('start_free_trial')
|
||||
: t('subscribe_now')
|
||||
|
||||
switch (variant) {
|
||||
case 'explore-plans':
|
||||
ctaLabel = t('explore_plans')
|
||||
break
|
||||
case 'get-more-compile-time':
|
||||
ctaLabel = t('get_more_compile_time')
|
||||
break
|
||||
case 'upgrade-now':
|
||||
ctaLabel = t('upgrade_now')
|
||||
break
|
||||
case 'subscribe-now':
|
||||
ctaLabel = t('subscribe_now')
|
||||
break
|
||||
default:
|
||||
ctaLabel = t('start_free_trial')
|
||||
break
|
||||
}
|
||||
const extraSearchParams = useMemo(() => {
|
||||
return {
|
||||
itm_content: 'new-editor',
|
||||
|
||||
@@ -91,7 +91,6 @@
|
||||
"en": "Angličtina",
|
||||
"es": "Španělština",
|
||||
"example_project": "Vzorový projekt",
|
||||
"explore_plans": "Prozkoumat tarify",
|
||||
"export_project_to_github": "Exportovat projekt do GitHubu",
|
||||
"features": "Vlastnosti",
|
||||
"file_already_exists_in_this_location": "Soubor <0>__fileName__</0> již v daném umístění existuje. Pokud chcete tento soubor přesunout, nejprve přejmenujte nebo odstraňte ten existující.",
|
||||
|
||||
@@ -544,7 +544,6 @@
|
||||
"expires_on": "Udløber: __date__",
|
||||
"expiry": "Udløbsdato",
|
||||
"explore_all_plans": "Udforsk alle abonnementer",
|
||||
"explore_plans": "Udforsk abonnementer",
|
||||
"export_csv": "Eksportér CSV",
|
||||
"export_project_to_github": "Eksporter projekt til GitHub",
|
||||
"failed_to_send_group_invite_to_email": "En fejl opstod under udsendelse af gruppeinvitation til <0>__email__</0>. Prøv venligst igen senere.",
|
||||
|
||||
@@ -531,7 +531,6 @@
|
||||
"expired_confirmation_code": "Dein Bestätigungscode ist abgelaufen. Klicke auf <0>Bestätigungscode erneut senden</0>, um einen neuen zu erhalten.",
|
||||
"expires": "Läuft ab",
|
||||
"expiry": "Ablaufdatum",
|
||||
"explore_plans": "Produkte entdecken",
|
||||
"export_csv": "CSV-Datei exportieren",
|
||||
"export_project_to_github": "Projekt nach GitHub exportieren",
|
||||
"failed_to_send_managed_user_invite_to_email": "Der Versand der Einladung für Verwaltete Benutzer an <0>__email__</0> hat nicht funktioniert. Bitte versuche es später noch einmal.",
|
||||
|
||||
@@ -848,7 +848,6 @@
|
||||
"expires_on": "Expires: __date__",
|
||||
"expiry": "Expiry Date",
|
||||
"explore_all_plans": "Explore all plans",
|
||||
"explore_plans": "Explore plans",
|
||||
"export_as_docx": "Export as Word document (.docx)",
|
||||
"export_as_html": "Export as HTML (.html)",
|
||||
"export_as_markdown": "Export as Markdown (.md)",
|
||||
|
||||
@@ -291,7 +291,6 @@
|
||||
"every": "cada",
|
||||
"example_project": "Proyecto de ejemplo",
|
||||
"expiry": "Fecha de expiración",
|
||||
"explore_plans": "Explorar planes",
|
||||
"export_project_to_github": "Exportar proyecto a GitHub",
|
||||
"fast": "Rápido",
|
||||
"features": "Características",
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"every": "joka",
|
||||
"example_project": "Esimerkkiprojekti",
|
||||
"expiry": "Voimassa",
|
||||
"explore_plans": "Tutustu sopimuksiin",
|
||||
"export_project_to_github": "Vie Projekti GitHubiin",
|
||||
"features": "Ominaisuudet",
|
||||
"february": "Helmikuu",
|
||||
|
||||
@@ -410,7 +410,6 @@
|
||||
"expand": "Déplier",
|
||||
"expires": "Expire",
|
||||
"expiry": "Date d’expiration",
|
||||
"explore_plans": "Découvrir les offres",
|
||||
"export_csv": "Exporter en CSV",
|
||||
"export_project_to_github": "Exporter le projet vers GitHub",
|
||||
"faq_how_does_free_trial_works_answer": "Vous obtenez un accès complet à l’offre __appName__ de votre choix pendant votre essai gratuit de __len__ jours. Il n’y a aucun engagement à poursuivre au delà de l’essai gratuit. Votre carte sera débitée à la fin de votre essai de __len__ jours à moins que vous n’annuliez votre essai auparavant. Vous pouvez annuler depuis les paramètres de votre abonnement.",
|
||||
|
||||
@@ -110,7 +110,6 @@
|
||||
"every": "ogni",
|
||||
"example_project": "Progetto di Esempio",
|
||||
"expiry": "Data Scadenza",
|
||||
"explore_plans": "Esplora i piani",
|
||||
"export_project_to_github": "Esporta Progetto in GitHub",
|
||||
"features": "Caratteristiche",
|
||||
"february": "Febbraio",
|
||||
|
||||
@@ -140,7 +140,6 @@
|
||||
"every": "毎",
|
||||
"example_project": "プロジェクト例",
|
||||
"expiry": "有効期限",
|
||||
"explore_plans": "プランを見る",
|
||||
"export_project_to_github": "プロジェクトをGitHubにエクスポート",
|
||||
"fast": "ファスト",
|
||||
"features": "機能",
|
||||
|
||||
@@ -162,7 +162,6 @@
|
||||
"every": "매",
|
||||
"example_project": "견본 프로젝트",
|
||||
"expiry": "유효기간",
|
||||
"explore_plans": "플랜 살펴보기",
|
||||
"export_project_to_github": "GitHub으로 프로젝트 보내기",
|
||||
"fast": "고속",
|
||||
"features": "기능",
|
||||
|
||||
@@ -167,7 +167,6 @@
|
||||
"every": "per",
|
||||
"example_project": "Voorbeeldproject",
|
||||
"expiry": "Vervaldatum",
|
||||
"explore_plans": "Abonnementen verkennen",
|
||||
"export_project_to_github": "Project exporteren naar GitHub",
|
||||
"fast": "Snel",
|
||||
"features": "Functies",
|
||||
|
||||
@@ -114,7 +114,6 @@
|
||||
"es": "Spansk",
|
||||
"example_project": "Eksempelprosjekt",
|
||||
"expiry": "Utløpsdato",
|
||||
"explore_plans": "Utforsk planer",
|
||||
"export_project_to_github": "Eksporter prosjekt til GitHub",
|
||||
"fast": "Hurtig",
|
||||
"features": "Funksjoner",
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
"error": "Błąd",
|
||||
"es": "Hiszpański",
|
||||
"example_project": "Przykładowy projekt",
|
||||
"explore_plans": "Poznaj plany",
|
||||
"first_name": "Imię",
|
||||
"folders": "Foldery",
|
||||
"forgot_your_password": "Zapomniałeś hasła?",
|
||||
|
||||
@@ -191,7 +191,6 @@
|
||||
"every": "por",
|
||||
"example_project": "Projeto Exemplo",
|
||||
"expiry": "Data de Validade",
|
||||
"explore_plans": "Explorar Planos",
|
||||
"export_csv": "Exportar CSV",
|
||||
"export_project_to_github": "Exportar Projeto para o GitHub",
|
||||
"faq_how_does_free_trial_works_answer": "Você obtém acesso total ao plano __appName__ escolhido durante a avaliação gratuita de __len__ dias. Não há obrigação de continuar além da versão de avaliação. Seu cartão será cobrado no final da avaliação de __len__ dias, a menos que você cancele antes disso. Você pode cancelar via suas configurações de assinatura.",
|
||||
|
||||
@@ -148,7 +148,6 @@
|
||||
"every": "каждый",
|
||||
"example_project": "Использовать пример",
|
||||
"expiry": "Срок действия",
|
||||
"explore_plans": "Посмотреть тарифы",
|
||||
"export_project_to_github": "Экспорт проекта на GitHub",
|
||||
"fast": "быстрый",
|
||||
"features": "Возможности",
|
||||
|
||||
@@ -261,7 +261,6 @@
|
||||
"existing_plan_active_until_term_end": "Din befintliga plan och dess funktioner förblir aktiva fram till slutet av den aktuella faktureringsperioden.",
|
||||
"expand": "Expandera",
|
||||
"expiry": "Utgångsdatum",
|
||||
"explore_plans": "Utforska planer",
|
||||
"export_csv": "Exportera CSV",
|
||||
"export_project_to_github": "Exportera Projekt till GitHub",
|
||||
"faq_how_does_free_trial_works_answer": "Du får full tillgång till din valda __appName__-plan under din __len__-dagars gratis provperiod. Det finns inget krav på att fortsätta efter provperioden. Ditt kort kommer att debiteras i slutet av din __len__-dagars provperiod om du inte avbryter innan dess. Du kan avbryta via dina prenumerationsinställningar.",
|
||||
|
||||
@@ -112,7 +112,6 @@
|
||||
"every": "her",
|
||||
"example_project": "Örnek Proje",
|
||||
"expiry": "Son kullanma tarihi",
|
||||
"explore_plans": "Planları Keşfedin",
|
||||
"export_project_to_github": "Projeyi GitHub’a yükle",
|
||||
"features": "Özellikler",
|
||||
"february": "Şubat",
|
||||
|
||||
@@ -632,7 +632,6 @@
|
||||
"expires_on": "过期日期:__date__",
|
||||
"expiry": "过期日期",
|
||||
"explore_all_plans": "探索所有订阅计划",
|
||||
"explore_plans": "浏览方案",
|
||||
"export_csv": "导出CSV",
|
||||
"export_project_to_github": "将项目导出到GitHub",
|
||||
"failed_to_send_group_invite_to_email": "未能向<0>__email__</0>发送团队邀请。请稍后再试。",
|
||||
|
||||
Reference in New Issue
Block a user