new change to use intaleq_map sdk 04-16-4
This commit is contained in:
12
packages/get/example/lib/lang/en_us.dart
Normal file
12
packages/get/example/lib/lang/en_us.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// ignore_for_file: file_names
|
||||
|
||||
const Map<String, String> en_US = {
|
||||
'covid': 'Corona Virus',
|
||||
'total_confirmed': 'Total Confirmed',
|
||||
'total_deaths': 'Total Deaths',
|
||||
'fetch_country': 'Fetch by country',
|
||||
'corona_by_country': 'Corona by country',
|
||||
'total_infecteds': 'Total Infecteds',
|
||||
'details': 'Details',
|
||||
'total_recovered': 'Total Recovered',
|
||||
};
|
||||
12
packages/get/example/lib/lang/pt_br.dart
Normal file
12
packages/get/example/lib/lang/pt_br.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// ignore_for_file: file_names
|
||||
|
||||
const Map<String, String> pt_BR = {
|
||||
'covid': 'Corona Vírus',
|
||||
'total_confirmed': 'Total confirmado',
|
||||
'total_deaths': 'Total de mortes',
|
||||
'fetch_country': 'Listar por país',
|
||||
'corona_by_country': 'Corona por país',
|
||||
'total_infecteds': 'Total de infectados',
|
||||
'details': 'Detalhes',
|
||||
'total_recovered': 'Total de recuperados'
|
||||
};
|
||||
15
packages/get/example/lib/lang/translation_service.dart
Normal file
15
packages/get/example/lib/lang/translation_service.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'en_us.dart';
|
||||
import 'pt_br.dart';
|
||||
|
||||
class TranslationService extends Translations {
|
||||
static Locale? get locale => Get.deviceLocale;
|
||||
static final fallbackLocale = Locale('en', 'US');
|
||||
@override
|
||||
Map<String, Map<String, String>> get keys => {
|
||||
'en_US': en_US,
|
||||
'pt_BR': pt_BR,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user