Skip to content

Commit

Permalink
fix: 初期化時に翻訳が反映されないことがある問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Oct 31, 2024
1 parent 5634dd1 commit 8010e00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Packages/dev.yukineko.wim.core/Runtime/I18n/I18nManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ public void ApplyI18n(bool isGlobal = false)
}

if (_controller == null) return;

if (!_isInitialized)
{
BuildLocalization();
}

_controller.UpdateTitle();

foreach (var canvas in _controller.Canvas)
{
foreach (var component in canvas.GetComponentsInChildren<ApplyI18n>(true))
Expand Down

0 comments on commit 8010e00

Please sign in to comment.