Kayıtlar

Mayıs 2, 2022 tarihine ait yayınlar gösteriliyor

Dotnet core projelerinde resource dosyası kullanımı

  Aşağıdaki şekilde giriş yapabiliriz public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } #region Localization // REMARK: you may refactor this into a separate method as it 's better to avoid long methods with regions var supportedCultures = new[] { new CultureInfo(defaultCultureName), new CultureInfo( "pl-PL" ) }; var localizationOptions = new RequestLocalizationOptions { DefaultRequestCulture = new RequestCulture(defaultCultureName, defaultCultureName), SupportedCultures = supportedCultures, SupportedUICultures = supportedCultures, // you can change the list of providers, if you don 't want the default behavior // e.g. the following line