Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新国际化文档代码语法错误 #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rzdong
Copy link

@rzdong rzdong commented Mar 11, 2020

英文官网此处代码没有Null,实际过程中有Null 会报错。

static Future load(Locale locale) {
final String name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
final String localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((Null _) { // 需要去掉这个Null
return DemoLocalizations(localeName);
});
}

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.

1 participant