From 85553832ead1a96f88726cd2b35cb6ff1d8b8cc8 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 24 Aug 2019 15:24:57 -0400 Subject: Attempt number 2 on localization --- .../Lean/Localization/Scripts/LeanLanguage.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs (limited to 'Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs') 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 +{ + /// This class stores information about a single language, and any of its optional cultures. + [System.Serializable] + public class LeanLanguage + { + [SerializeField] + private string name; + + [SerializeField] + private List cultures; + + public string Name + { + set + { + name = value; + } + + get + { + return name; + } + } + + /// This culture names for this language (e.g. en-GB, en-US). + public List Cultures + { + get + { + if (cultures == null) + { + cultures = new List(); + } + + return cultures; + } + } + } +} \ No newline at end of file -- cgit v1.2.3