feat: add i18n

This commit is contained in:
Alberto Ponces 2022-08-07 00:37:12 +01:00
parent ab9b91b975
commit 89b642772c
15 changed files with 259 additions and 123 deletions

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:revanced_manager/constants.dart';
@ -23,17 +24,23 @@ class PatchSelectorCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Select patches",
style: GoogleFonts.roboto(
fontSize: 18,
fontWeight: FontWeight.w500,
I18nText(
'patchSelectorCard.widgetTitle',
child: Text(
'',
style: GoogleFonts.roboto(
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
),
const SizedBox(height: 10),
Text(
"Select an application first.",
style: robotoTextStyle,
I18nText(
'patchSelectorCard.widgetSubtitle',
child: Text(
'',
style: robotoTextStyle,
),
),
],
),