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

[Localization API] Localization Assetを使ってると言語のフォールバックが効かない #100

Closed
anatawa12 opened this issue Dec 27, 2023 · 0 comments · Fixed by #107

Comments

@anatawa12
Copy link
Contributor

https://misskey.niri.la/notes/9l50s4zx5r

API的な感じではなく実装的な話ですが、LocalizationAsset.GetLocalizedStringは対応する値がないとキーがそのまま返ってくるので、Func<string, string> lookupの規約として見つからない場合null返すにするのであればなんかしらの形でラップして上げる必要があると思います

@anatawa12 anatawa12 changed the title Localization Assetを使ってると言語のフォールバックが効かない [Localization API] Localization Assetを使ってると言語のフォールバックが効かない Dec 27, 2023
bdunderscore added a commit that referenced this issue Jan 6, 2024
bdunderscore added a commit that referenced this issue Jan 6, 2024
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 a pull request may close this issue.

1 participant