aboutsummaryrefslogtreecommitdiff
path: root/Assets/Packages/Lean/Localization/Scripts/LeanLanguage.cs
blob: 1a39708359b103d70e0ded28334951e675bbc748 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
			}
		}
	}
}