Skip to content

Commit fc1f50a

Browse files
committed
Upload
1 parent 7bae491 commit fc1f50a

33 files changed

+797
-0
lines changed

Assets/LocalizeService.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/LocalizeService/Demo.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
53 KB
Binary file not shown.

Assets/LocalizeService/Demo/Demo.unity.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using SunCubeStudio.Localization;
2+
using UnityEngine;
3+
using UnityEngine.UI;
4+
5+
// For DEMO VIEW
6+
public class LocolizeTest : MonoBehaviour
7+
{
8+
public Text CurrentText;
9+
10+
private void Start()
11+
{
12+
CurrentText.text = string.Format("Current localization - {0}", LocalizationService.Instance.Localization);
13+
}
14+
15+
public void English()
16+
{
17+
LocalizationService.Instance.Localization = "English";
18+
19+
CurrentText.text = string.Format("Current localization {0}",
20+
LocalizationService.Instance.GetTextByKeyWithLocalize("localization1", "English"));
21+
}
22+
public void Russian()
23+
{
24+
LocalizationService.Instance.Localization = "Russian";
25+
26+
CurrentText.text = string.Format("Current localization {0}",
27+
LocalizationService.Instance.GetTextByKeyWithLocalize("localization2", "English"));
28+
}
29+
30+
public void French()
31+
{
32+
LocalizationService.Instance.Localization = "French";
33+
34+
CurrentText.text = string.Format("Current localization {0}",
35+
LocalizationService.Instance.GetTextByKeyWithLocalize("localization3", "English"));
36+
}
37+
38+
}

Assets/LocalizeService/Demo/LocolizeTest.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/LocalizeService/Demo/TexturesDemo.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
28.9 KB
Loading

Assets/LocalizeService/Demo/TexturesDemo/France-Flag-icon.png.meta

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
35.7 KB
Loading

0 commit comments

Comments
 (0)