Example #1
0
        internal static void AddSource(LanguageSource Source)
        {
            if (Sources.Contains(Source))
            {
                return;
            }

            Sources.Add(Source);
#if !UNITY_EDITOR || I2LOC_AUTOSYNC_IN_EDITOR
            Source.Import_Google_FromCache();
            if (Source.GoogleUpdateDelay > 0)
            {
                Source.Invoke("Delayed_Import_Google", Source.GoogleUpdateDelay);
            }
            else
            {
                Source.Import_Google();
            }
#endif
            if (Source.mDictionary.Count == 0)
            {
                Source.UpdateDictionary(true);
            }
        }