-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(i18n): localize about module (#143)
add i18n in tests format and refactor code signed-off-by: Pavan Joshi <[email protected]>
- Loading branch information
1 parent
a1690ac
commit b67696e
Showing
8 changed files
with
346 additions
and
117 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | ||
import 'package:mobile_app/cv_theme.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
|
||
class AboutPrivacyPolicyView extends StatelessWidget { | ||
static const String id = 'about_privacy_policy_view'; | ||
|
@@ -85,7 +86,7 @@ class AboutPrivacyPolicyView extends StatelessWidget { | |
appBar: showAppBar | ||
? AppBar( | ||
title: Text( | ||
'Privacy Policy', | ||
AppLocalizations.of(context).privacy_policy, | ||
style: TextStyle( | ||
color: CVTheme.primaryHeading(context), | ||
), | ||
|
@@ -101,144 +102,150 @@ class AboutPrivacyPolicyView extends StatelessWidget { | |
content: [ | ||
_buildText( | ||
context, | ||
'\nWe recognize that your privacy is very important and take it seriously. Our CircuitVerse Privacy Policy (“Privacy Policy”) describes our policies and procedures on the collection, use, disclosure, and sharing of your information when you use our Platform. We will not use or share your information with anyone except as described in this Privacy Policy. Capitalized terms that are not defined in this Privacy Policy have the meaning given them in our ', | ||
AppLocalizations.of(context).privacy_section1_text, | ||
), | ||
_buildLink( | ||
'Terms of Service', | ||
AppLocalizations.of(context).terms_of_service, | ||
'https://circuitverse.org/tos', | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'.\n', | ||
AppLocalizations.of(context).full_stop, | ||
), | ||
], | ||
), | ||
_buildSection( | ||
title: 'The Information We Collect', | ||
title: AppLocalizations.of(context).privacy_section_2_title, | ||
context: context, | ||
content: [ | ||
_buildText( | ||
context, | ||
'We collect information directly from individuals automatically through the CircuitVerse Platform.\n\n', | ||
AppLocalizations.of(context).privacy_section2_text, | ||
), | ||
_buildText( | ||
context, | ||
'Account and Profile Information: ', | ||
AppLocalizations.of(context).privacy_section2_item1, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText(context, | ||
'When you create an account and profile on the CircuitVerse Platform, we collect your email-id. Your name, photo, and any other information that you choose to add to your public-facing profile will be available for viewing to users of our Platform. Once you activate a profile, other users will be able to see in your profile certain information about your activity.\n\n'), | ||
_buildText( | ||
context, | ||
'Integrated Service Provider and Linked Networks. ', | ||
AppLocalizations.of(context).privacy_section2_item1_text, | ||
), | ||
_buildText( | ||
context, | ||
AppLocalizations.of(context).privacy_section2_item2, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'If you elect to connect your CircuitVerse account to another online service provider, such as a social networking service (“Integrated Service Provider”), you will be allowing us to pass to and receive from the Integrated Service Provider your log-in information and other user data. You may elect to sign in or sign up to the CircuitVerse Platform through a linked network like Facebook or Google (each a “Linked Network”).The specific information we may collect varies by Integrated Service Provider, but the permissions page for each will describe the relevant information. Integrated Service Providers control how they use and share your information; you should consult their respective privacy policies for information about their practices.\n\n', | ||
AppLocalizations.of(context).privacy_section2_item2_text, | ||
), | ||
_buildText( | ||
context, | ||
'Automatically Collected Information About Your Activity. ', | ||
AppLocalizations.of(context).privacy_section2_item3, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'We use cookies, log files, pixel tags, local storage objects, and other tracking technologies to automatically collect information about your activities, such as your searches, page views, date and time of your visit, and other information about your use of the CircuitVerse Platform.\n\n', | ||
AppLocalizations.of(context).privacy_section2_item3_text, | ||
), | ||
], | ||
), | ||
_buildSection( | ||
title: 'How We Use Your Information', | ||
title: AppLocalizations.of(context).privacy_section3_title, | ||
context: context, | ||
content: [ | ||
_buildText( | ||
context, | ||
'We do not sell your personally identifying information – such as your name and contact information – to third parties to use for their own marketing purposes.\n\n', | ||
AppLocalizations.of(context).privacy_section3_text, | ||
), | ||
_buildText( | ||
context, | ||
AppLocalizations.of(context).privacy_section3_list_header, | ||
), | ||
_buildText( | ||
context, | ||
'CircuitVerse uses the information we collect:\n\n', | ||
AppLocalizations.of(context).privacy_section3_item1, | ||
), | ||
_buildText( | ||
context, | ||
'\t• To provide you the services we offer on the CircuitVerse Platform, communicate with you about your use of the CircuitVerse Platform, respond to your inquiries, provide troubleshooting, and for other customer service purposes.\n\n', | ||
AppLocalizations.of(context).privacy_section3_item2, | ||
), | ||
_buildText( | ||
context, | ||
'\t• To tailor the content and information that we may send or display to you in the CircuitVerse Platform.\n\n', | ||
AppLocalizations.of(context).privacy_section3_item3, | ||
), | ||
_buildText( | ||
context, | ||
'\t• To better understand how users access and use the CircuitVerse Platform both on an aggregated and individualized basis, and for other research and analytical purposes.\n\n', | ||
AppLocalizations.of(context).privacy_section3_item4, | ||
), | ||
_buildText( | ||
context, | ||
'\t• To evaluate and improve the CircuitVerse Platform and to develop new products and services.\n\n', | ||
AppLocalizations.of(context).privacy_section3_item5, | ||
), | ||
_buildText( | ||
context, | ||
'\t• To comply with legal obligations, as part of our general business operations, and for other business administration purposes.\n\n', | ||
AppLocalizations.of(context).privacy_section3_item6, | ||
), | ||
_buildText( | ||
context, | ||
'\t• Where we believe necessary to investigate, prevent or take action regarding illegal activities, suspected fraud, situations involving potential threats to the safety of any person or violations of our Terms of Use or this Privacy Policy.\n\n', | ||
AppLocalizations.of(context).privacy_section3_text2_title, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText(context, 'Your Content and Activity. ', | ||
bold: true, italic: true), | ||
_buildText( | ||
context, | ||
'Your Content, including your name, profile picture, profile information, and certain associated activity information is available to other users of the CircuitVerse Platform and may be viewed publicly. Public viewing includes availability to non-registered visitors and can occur when users share Your Content across other sites or services. In addition, Your Content may be indexed by search engines.\n\n', | ||
AppLocalizations.of(context).privacy_section3_text2, | ||
), | ||
_buildText( | ||
context, | ||
'Anonymized and Aggregated Data. ', | ||
AppLocalizations.of(context).privacy_section3_text3_title, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'We may share aggregate or de-identified information with third parties for research, marketing, analytics and other purposes, provided such information does not identify a particular individual.\n\n', | ||
AppLocalizations.of(context).privacy_section3_text3, | ||
), | ||
_buildText( | ||
context, | ||
'Tracking. ', | ||
AppLocalizations.of(context).privacy_section3_text4_title, | ||
bold: true, | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'Analytics Tools -We may use internal and third party analytics tools, including ', | ||
AppLocalizations.of(context).privacy_section3_text4_string1, | ||
), | ||
_buildLink( | ||
'Google Analytics', | ||
AppLocalizations.of(context).google_analytics, | ||
'https://support.google.com/analytics/answer/6004245?hl=en', | ||
italic: true, | ||
), | ||
_buildText( | ||
context, | ||
'. The third party analytics companies we work with may combine the information collected with other information they have independently collected from other websites and/or other online products and services. Their collection and use of information is subject to their own privacy policies.\n\n', | ||
AppLocalizations.of(context).privacy_section3_text4_string2, | ||
) | ||
], | ||
), | ||
_buildSection( | ||
title: 'Contact Us', | ||
title: AppLocalizations.of(context).contact_us, | ||
context: context, | ||
content: [ | ||
_buildText( | ||
context, | ||
'If you have any questions about our practices or this Privacy Policy, please contact us at ', | ||
AppLocalizations.of(context).contact_us_text, | ||
), | ||
_buildLink('[email protected]', | ||
'mailto:[email protected]', | ||
italic: true), | ||
_buildText( | ||
context, | ||
'.\n\n', | ||
AppLocalizations.of(context).full_stop, | ||
), | ||
], | ||
), | ||
|
Oops, something went wrong.