mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update translation for the annual plan
GitOrigin-RevId: 3a7e42f61f7820221df3be3c8bd4cd1738b5cb46
This commit is contained in:
parent
5dfe026123
commit
38d1e749fb
3 changed files with 23 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue