Skip to content

Internationalization#3

Open
antleeon wants to merge 4 commits into
mainfrom
internationalization
Open

Internationalization#3
antleeon wants to merge 4 commits into
mainfrom
internationalization

Conversation

@antleeon

@antleeon antleeon commented May 3, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@antleeon antleeon requested a review from ArsPro13 May 3, 2025 23:11
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter/widgets.dart';

class S {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай все-таки поменяем нейминг

BottomNavigationBarItem(
label: 'Main',
icon: Icon(Icons.coffee),
label: S.of(context).mainPageHome,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай перейдем на расширение контекста, чтобы использовать context.localizations
https://dart.dev/language/extension-methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants