Skip to content

Commit

Permalink
fix(optional-policies): make user settings label translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Dec 4, 2024
1 parent b359da6 commit dbbc0a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/components/addManagePoliciesOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default function () {

items.add(
'policies',
<FieldSet label={'Policies'}>
<FieldSet label={app.translator.trans('fof-terms.forum.user_settings.optional_policies_label')}>
{optionalPolicies.map((policy) => {
const { is_accepted } = policyState[policy.id()];
return (
<div class={'Fof-Terms-Policy-User-Settings-Management'}>
<div class="Fof-Terms-Policy-User-Settings-Management">
<Switch
state={is_accepted}
onchange={async (value) => {
Expand Down
3 changes: 3 additions & 0 deletions resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ fof-terms:
can-accept-message: We recently updated the terms. You must accept them to continue using this website.
review: Click here to review and accept the new terms

user_settings:
optional_policies_label: Policies

user_controls:
state_button: Terms accept state

Expand Down

0 comments on commit dbbc0a0

Please sign in to comment.