Skip to content

Commit

Permalink
feat(i18n): localize about module (#143)
Browse files Browse the repository at this point in the history
add i18n in tests
format and refactor code
signed-off-by: Pavan Joshi <pavanj914@gmail.com>
  • Loading branch information
pavanjoshi914 authored Oct 5, 2021
1 parent a1690ac commit b67696e
Show file tree
Hide file tree
Showing 8 changed files with 346 additions and 117 deletions.
98 changes: 97 additions & 1 deletion lib/l10n/app_en.arb

Large diffs are not rendered by default.

98 changes: 97 additions & 1 deletion lib/l10n/app_hi.arb

Large diffs are not rendered by default.

75 changes: 41 additions & 34 deletions lib/ui/views/about/about_privacy_policy_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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),
),
Expand All @@ -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('support@circuitverse.org',
'mailto:privacy@CircuitVerse.com',
italic: true),
_buildText(
context,
'.\n\n',
AppLocalizations.of(context).full_stop,
),
],
),
Expand Down
Loading

0 comments on commit b67696e

Please sign in to comment.