public void I18NEnglishTest() { I18N.RemoveInstance(I18nName); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); _i18N = I18N.GetInstance(_i18NOption); string str = _i18N.GetStr(TestLabel); Assert.AreEqual(str, i18n_test_en.TestLabel); }
public void Dispose() { _descriptionData?.Dispose(); _loaderManager?.Dispose(); I18N.RemoveInstance(Constants.I18nName); }
//强制结束与否,由外部管理 public void Dispose() { Unload(); I18N.RemoveInstance(Constants.I18nName); }