public static void ImportAllNGUILocalizations()
    {
        LanguageList list             = ResourceLoadFacade.getLanguageList();
        string       nguiLocalization = ResourceLoadFacade.LoadResource <TextAsset>("Localization").text;
        var          importer         = new NGUILocalizationCSVImporter(nguiLocalization);
        Dictionary <string, Dictionary <string, string> > map = importer.getMapOfLanguagesToKeyValueTranslations();

        foreach (var languageCommonNameToKeyValues in map)
        {
            string commonName = languageCommonNameToKeyValues.Key;
            Dictionary <string, string> keyValues = languageCommonNameToKeyValues.Value;
            string languageCode = takeLanguageNameAndTurnItIntoAKnownLanguageCode(commonName);

            TransfluentLanguage language = list.getLangaugeByCode(languageCode);
            saveSet(language, keyValues, "NGUI");             //groupid -- NGUI
        }
    }
    public static string getLocalizationPath()
    {
        string localizationPath =
            AssetDatabase.GetAssetPath(ResourceLoadFacade.LoadResource <TextAsset>("Localization"));
        string projectBasePath =
            Path.GetFullPath(Application.dataPath + Path.DirectorySeparatorChar + ".." + Path.DirectorySeparatorChar);

        if (string.IsNullOrEmpty(localizationPath))
        {
            localizationPath = "Assets/Resources/Localization.txt";
            if (!Directory.Exists("Assets/Resources"))
            {
                AssetDatabase.CreateFolder("Assets", "Resources");
            }
            File.WriteAllText(projectBasePath + localizationPath, "");

            //TextAsset ta = new TextAsset();
            //AssetDatabase.CreateAsset(ta, localizationPath);
            AssetDatabase.ImportAsset(localizationPath, ImportAssetOptions.ForceSynchronousImport);
        }

        return(projectBasePath + localizationPath);
    }