Skip to content

Commit 1c41c0f

Browse files
refactor: localize terms and policy pages
1 parent 9aa7aec commit 1c41c0f

11 files changed

Lines changed: 1315 additions & 75 deletions
Lines changed: 31 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,35 @@
11
@page "/privacy-policy"
22
@{
3-
Layout = "_SimpleLayout";
3+
Layout = "_SimpleLayout";
44
}
55

6-
<h1>Privacy Policy</h1>
7-
<p>Effective Date: <strong>@DateTime.Now.ToString("d")</strong></p>
8-
9-
<p>Your privacy is important to us. This Privacy Policy explains how we collect, use, and protect your information when you use our application and services.</p>
10-
11-
<h2>1. Information We Collect</h2>
12-
<p>When you use our platform, we may collect the following information:</p>
13-
<ul>
14-
<li>Email address: Used to create and manage your account, as well as to send password recovery emails if requested.</li>
15-
<li>Basic profile information: This may include your name or profile picture if provided by the external login provider.</li>
16-
</ul>
17-
<p>We only collect information that is necessary to provide and improve our services.</p>
18-
19-
<h2>2. How We Use Your Information</h2>
20-
<p>We use your information for the following purposes:</p>
21-
<ul>
22-
<li>To authenticate your identity and log you into our platform.</li>
23-
<li>To manage your account and provide essential account-related communications.</li>
24-
<li>To send you password recovery emails if requested by you.</li>
25-
</ul>
26-
<p><strong>We do not sell, share, or use your information for marketing purposes.</strong></p>
27-
28-
<h2>3. Data Sharing</h2>
29-
<p>We do not share your data with third parties, except when required by law or to comply with the terms of the external login providers (e.g., Google, Microsoft, Twitter, Facebook).</p>
30-
31-
<h2>4. Data Retention</h2>
32-
<p>We retain your information for as long as necessary to provide our services or as required by law. If you choose to delete your account, we will remove your data from our systems within a reasonable timeframe.</p>
33-
34-
<h2>5. Security Measures</h2>
35-
<p>We implement industry-standard security measures to protect your data. However, no method of transmission over the Internet or electronic storage is completely secure, and we cannot guarantee absolute security.</p>
36-
37-
<h2>6. Your Rights</h2>
38-
<p>You have the following rights regarding your personal information:</p>
39-
<ul>
40-
<li>Access: You can request a copy of the information we hold about you.</li>
41-
<li>Correction: You can request corrections to inaccurate or incomplete information.</li>
42-
<li>Deletion: You can request the deletion of your account and associated data.</li>
43-
</ul>
44-
<p>To exercise these rights, please contact us</p>
45-
46-
<h2>7. Changes to This Privacy Policy</h2>
47-
<p>We reserve the right to update this Privacy Policy at any time. Any changes will be posted on this page, and the Effective Date will be updated accordingly.</p>
48-
49-
<h2>8. Contact Us</h2>
50-
<p>If you have any questions about this Privacy Policy or how we handle your data, please contact us.</p>
51-
52-
<p>By using our platform, you agree to this Privacy Policy.</p>
6+
<h1>@WebAppLocalizer[WebAppResource.Privacy_Title]</h1>
7+
<p>@WebAppLocalizer[WebAppResource.Terms_EffectiveDate] <strong>@DateTime.Now.ToString("d")</strong></p>
8+
9+
<p>@WebAppLocalizer[WebAppResource.Privacy_Introduction]</p>
10+
11+
<h2>@WebAppLocalizer[WebAppResource.Privacy_InformationWeCollect_Title]</h2>
12+
@Html.Raw(WebAppLocalizer[WebAppResource.Privacy_InformationWeCollect_Content])
13+
14+
<h2>@WebAppLocalizer[WebAppResource.Privacy_HowWeUseInfo_Title]</h2>
15+
@Html.Raw(WebAppLocalizer[WebAppResource.Privacy_HowWeUseInfo_Content])
16+
17+
<h2>@WebAppLocalizer[WebAppResource.Privacy_DataSharing_Title]</h2>
18+
<p>@WebAppLocalizer[WebAppResource.Privacy_DataSharing_Content]</p>
19+
20+
<h2>@WebAppLocalizer[WebAppResource.Privacy_DataRetention_Title]</h2>
21+
<p>@WebAppLocalizer[WebAppResource.Privacy_DataRetention_Content]</p>
22+
23+
<h2>@WebAppLocalizer[WebAppResource.Privacy_SecurityMeasures_Title]</h2>
24+
<p>@WebAppLocalizer[WebAppResource.Privacy_SecurityMeasures_Content]</p>
25+
26+
<h2>@WebAppLocalizer[WebAppResource.Privacy_YourRights_Title]</h2>
27+
@Html.Raw(WebAppLocalizer[WebAppResource.Privacy_YourRights_Content])
28+
29+
<h2>@WebAppLocalizer[WebAppResource.Privacy_PolicyChanges_Title]</h2>
30+
<p>@WebAppLocalizer[WebAppResource.Privacy_PolicyChanges_Content]</p>
31+
32+
<h2>@WebAppLocalizer[WebAppResource.Terms_ContactUs]</h2>
33+
<p>@WebAppLocalizer[WebAppResource.Terms_ContactUsInfo]</p>
34+
35+
<p>@WebAppLocalizer[WebAppResource.Terms_AgreeToPolicy]</p>

src/2-Clients/WebApp/Pages/Website/Home/Terms.cshtml

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,32 @@
33
Layout = "_SimpleLayout";
44
}
55

6-
<h1>Terms of Service</h1>
7-
<p>Effective Date: <strong>@DateTime.Now.ToString("d")</strong></p>
6+
<h1>@WebAppLocalizer[WebAppResource.Terms_Title]</h1>
7+
<p>@WebAppLocalizer[WebAppResource.Terms_EffectiveDate] <strong>@DateTime.Now.ToString("d")</strong></p>
88

9-
<p>Welcome to our platform! These Terms of Service ("Terms") govern your use of our application and its associated features.</p>
9+
<p>@WebAppLocalizer[WebAppResource.Terms_Introduction]</p>
1010

11-
<h2>1. External Login Providers</h2>
12-
<p>Our platform allows you to log in using third-party providers, including but not limited to Google, Microsoft, Twitter, and Facebook. By using these external login services, you agree to the respective terms and policies of the login provider you select.</p>
11+
<h2>@WebAppLocalizer[WebAppResource.Terms_ExternalLogin_Title]</h2>
12+
<p>@WebAppLocalizer[WebAppResource.Terms_ExternalLogin_Content]</p>
1313

14-
<h2>2. Use of Your Email Address</h2>
15-
<p>When you log in through any external provider, we may request access to your email address. This email address is used for the following purposes:</p>
16-
<ul>
17-
<li>To create and manage your account on our platform.</li>
18-
<li>To use as your username for authentication purposes.</li>
19-
<li>To send password recovery emails, if requested by you.</li>
20-
</ul>
21-
<p><strong>We do not use your email address for marketing purposes, share it with third parties, or utilize it for any other goals.</strong></p>
14+
<h2>@WebAppLocalizer[WebAppResource.Terms_EmailUsage_Title]</h2>
15+
@Html.Raw(WebAppLocalizer[WebAppResource.Terms_EmailUsage_Content])
2216

23-
<h2>3. Privacy and Data Handling</h2>
24-
<p>We prioritize your privacy and handle your information in compliance with our <a href="/privacy-policy">Privacy Policy</a>. Any data obtained during the login process will only be used to facilitate your access to our platform.</p>
17+
<h2>@WebAppLocalizer[WebAppResource.Terms_PrivacyHandling_Title]</h2>
18+
<p>@WebAppLocalizer[WebAppResource.Terms_PrivacyHandling_Content]</p>
2519

26-
<h2>4. Responsibility of External Providers</h2>
27-
<p>By using an external login provider, you agree to the terms, conditions, and privacy policies of that provider. We are not responsible for any actions taken by external login services.</p>
20+
<h2>@WebAppLocalizer[WebAppResource.Terms_ProviderResponsibility_Title]</h2>
21+
<p>@WebAppLocalizer[WebAppResource.Terms_ProviderResponsibility_Content]</p>
2822

29-
<h2>5. Your Account Responsibilities</h2>
30-
<p>You are responsible for maintaining the confidentiality of your account credentials. Please contact us immediately if you believe your account has been compromised.</p>
23+
<h2>@WebAppLocalizer[WebAppResource.Terms_AccountResponsibility_Title]</h2>
24+
<p>@WebAppLocalizer[WebAppResource.Terms_AccountResponsibility_Content]</p>
3125

32-
<h2>6. Modifications to These Terms</h2>
33-
<p>We reserve the right to modify these Terms at any time. If significant changes are made, we will notify you through our platform or via email.</p>
26+
<h2>@WebAppLocalizer[WebAppResource.Terms_Modifications_Title]</h2>
27+
<p>@WebAppLocalizer[WebAppResource.Terms_Modifications_Content]</p>
3428

35-
<h2>7. Contact Us</h2>
36-
<p>If you have any questions about these Terms or our platform, please contact us.</p>
29+
<h2>@WebAppLocalizer[WebAppResource.Terms_ContactUs]</h2>
30+
<p>@WebAppLocalizer[WebAppResource.Terms_ContactUsInfo]</p>
3731

38-
<p>By using our platform, you agree to these Terms of Service.</p>
32+
<p>@WebAppLocalizer[WebAppResource.Terms_AgreeToTerms]</p>
3933

40-
<p>Thank you for using our platform!</p>
34+
<p>@WebAppLocalizer[WebAppResource.Terms_ThankYou]</p>
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
@using CanBeYours.Core.Resources
2+
@using CanBeYours.WebApp.Resources
3+
@using CodeBlock.DevKit.Core.Resources
14
@using Microsoft.AspNetCore.Authorization
2-
@using Microsoft.AspNetCore.Identity
5+
@using Microsoft.Extensions.Localization
36
@attribute [AllowAnonymous]
47

58
CanBeYours.Website.Pages
6-
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
9+
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
10+
11+
@inject IStringLocalizer<WebAppResource> WebAppLocalizer
12+
@inject IStringLocalizer<CoreResource> CoreLocalizer
13+
@inject IStringLocalizer<SharedResource> SharedLocalizer

0 commit comments

Comments
 (0)