aboutsummaryrefslogtreecommitdiff
path: root/Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs')
-rw-r--r--Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs b/Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs
new file mode 100644
index 0000000..1a39708
--- /dev/null
+++ b/Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs
@@ -0,0 +1,43 @@
+using UnityEngine;
+using System.Collections.Generic;
+
+namespace Lean.Localization
+{
+ /// <summary>This class stores information about a single language, and any of its optional cultures.</summary>
+ [System.Serializable]
+ public class LeanLanguage
+ {
+ [SerializeField]
+ private string name;
+
+ [SerializeField]
+ private List<string> cultures;
+
+ public string Name
+ {
+ set
+ {
+ name = value;
+ }
+
+ get
+ {
+ return name;
+ }
+ }
+
+ /// <summary>This culture names for this language (e.g. en-GB, en-US).</summary>
+ public List<string> Cultures
+ {
+ get
+ {
+ if (cultures == null)
+ {
+ cultures = new List<string>();
+ }
+
+ return cultures;
+ }
+ }
+ }
+} \ No newline at end of file