mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Update translation for the annual plan
GitOrigin-RevId: 3a7e42f61f7820221df3be3c8bd4cd1738b5cb46
This commit is contained in:
@@ -326,6 +326,7 @@
|
||||
"find_the_symbols_you_need_with_premium": "",
|
||||
"first_name": "",
|
||||
"first_x_days_free_after_that_y_per_month": "",
|
||||
"first_x_days_free_after_that_y_per_year": "",
|
||||
"fold_line": "",
|
||||
"folder_location": "",
|
||||
"following_paths_conflict": "",
|
||||
|
||||
@@ -2,7 +2,8 @@ import { Trans } from 'react-i18next'
|
||||
import { usePaymentContext } from '../../../context/payment-context'
|
||||
|
||||
function TrialPrice() {
|
||||
const { currencySymbol, trialLength, recurlyPrice } = usePaymentContext()
|
||||
const { currencySymbol, plan, recurlyPrice, trialLength } =
|
||||
usePaymentContext()
|
||||
|
||||
if (!trialLength || !recurlyPrice) {
|
||||
return null
|
||||
@@ -10,14 +11,25 @@ function TrialPrice() {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Trans
|
||||
i18nKey="first_x_days_free_after_that_y_per_month"
|
||||
components={[<strong />, <strong />]} // eslint-disable-line react/jsx-key
|
||||
values={{
|
||||
trialLen: trialLength,
|
||||
price: `${currencySymbol}${recurlyPrice.total}`,
|
||||
}}
|
||||
/>
|
||||
{plan.annual ? (
|
||||
<Trans
|
||||
i18nKey="first_x_days_free_after_that_y_per_year"
|
||||
components={[<strong />, <strong />]} // eslint-disable-line react/jsx-key
|
||||
values={{
|
||||
trialLen: trialLength,
|
||||
price: `${currencySymbol}${recurlyPrice.total}`,
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<Trans
|
||||
i18nKey="first_x_days_free_after_that_y_per_month"
|
||||
components={[<strong />, <strong />]} // eslint-disable-line react/jsx-key
|
||||
values={{
|
||||
trialLen: trialLength,
|
||||
price: `${currencySymbol}${recurlyPrice.total}`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -528,6 +528,7 @@
|
||||
"find_the_symbols_you_need_with_premium": "Find the symbols you need faster with Overleaf Premium",
|
||||
"first_name": "First Name",
|
||||
"first_x_days_free_after_that_y_per_month": "First <0>__trialLen__ days free</0>, after that <0>__price__</0> per month",
|
||||
"first_x_days_free_after_that_y_per_year": "First <0>__trialLen__ days free</0>, after that <0>__price__</0> per year",
|
||||
"fold_line": "Fold line",
|
||||
"folder_location": "Folder location",
|
||||
"folders": "Folders",
|
||||
|
||||
Reference in New Issue
Block a user