Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions browser_extension/_locales/vi/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": { "message": "BaoCode" },
"description": { "message": "Cho phép các AI agent của BaoCode sử dụng những tab bạn chia sẻ: mở trang, đọc nội dung, nhấp chuột và nhập văn bản, trong khi bạn theo dõi." }
}
6 changes: 5 additions & 1 deletion lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/intl.dart' as intl;

import 'app_localizations_en.dart';
import 'app_localizations_vi.dart';
import 'app_localizations_zh.dart';

// ignore_for_file: type=lint
Expand Down Expand Up @@ -95,6 +96,7 @@ abstract class AppLocalizations {
/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('en'),
Locale('vi'),
Locale('zh'),
];

Expand Down Expand Up @@ -23539,7 +23541,7 @@ class _AppLocalizationsDelegate

@override
bool isSupported(Locale locale) =>
<String>['en', 'zh'].contains(locale.languageCode);
<String>['en', 'vi', 'zh'].contains(locale.languageCode);

@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
Expand All @@ -23550,6 +23552,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
switch (locale.languageCode) {
case 'en':
return AppLocalizationsEn();
case 'vi':
return AppLocalizationsVi();
case 'zh':
return AppLocalizationsZh();
}
Expand Down
Loading