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

Fix incorrect value caching of M17N #939

Merged
merged 1 commit into from
May 13, 2021

Conversation

oocytanb
Copy link
Contributor

MsgCacheenumvalue を保存すべきところで、引数で渡された key を保存しています。
これでは、enum のすべての値が、最初に渡された key の文字列としてキャッシュされてしまうため、これを修正しました。

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

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

👍

@@ -61,7 +61,7 @@ public static string Get(Languages language, T key)
{
var match = GetAttribute(value, language);
// Attribute。無かったら enum の ToString
Copy link
Contributor

Choose a reason for hiding this comment

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

たしかに 👀

@ousttrue ousttrue merged commit 7095fda into vrm-c:master May 13, 2021
@oocytanb oocytanb deleted the fix/m17n_value_caching branch May 13, 2021 10:57
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