Use ISO codes instead of language IDs for fallback languages and translations (#13751)
* Use language ISO code for language fallback instead of language ID * Remove language and language ID from dictionary item and dictionary item translation * ADd unit test for dictionary item translation value extension * Make the internal service implementations sealed * Rename translation ISO code to be more explicit in its origin (Language) * Add breaking changes suppression * Handle save of invalid fallback iso code * Fixed test * Only allow non-UserCustomCulture's * Fixed and added tests * Rename ISO code validation method * Fix language telemetry test (create Swedish with the correct ISO code) --------- Co-authored-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -246,7 +246,7 @@ public class ScopedRepositoryTests : UmbracoIntegrationTest
|
||||
var item = (await dictionaryItemService.CreateAsync(
|
||||
new DictionaryItem("item-key")
|
||||
{
|
||||
Translations = new IDictionaryTranslation[] { new DictionaryTranslation(lang.Id, "item-value") }
|
||||
Translations = new IDictionaryTranslation[] { new DictionaryTranslation(lang, "item-value") }
|
||||
})).Result;
|
||||
|
||||
// Refresh the keyed cache manually
|
||||
|
||||
Reference in New Issue
Block a user