mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-10-13 17:22:02 +00:00
Add Simplified Chinese (zh-CN) GUI translations (#799)
This commit is contained in:
@@ -125,13 +125,27 @@ Describe 'Get-PluralCategory' {
|
||||
Get-PluralCategory -LanguageCode 'en-US' -Count $Count | Should -Be $Expected
|
||||
}
|
||||
|
||||
It 'returns other for a Japanese count of <Count>' -ForEach @(
|
||||
@{ Count = 0 }
|
||||
@{ Count = 1 }
|
||||
@{ Count = 2 }
|
||||
@{ Count = 5 }
|
||||
It 'returns other for <LanguageCode> with a count of <Count>' -ForEach @(
|
||||
foreach ($languageCode in @('ja-JP', 'zh-CN')) {
|
||||
foreach ($count in @(0, 1, 2, 5, 100)) {
|
||||
@{ LanguageCode = $languageCode; Count = $count }
|
||||
}
|
||||
}
|
||||
) {
|
||||
Get-PluralCategory -LanguageCode 'ja-JP' -Count $Count | Should -Be 'other'
|
||||
Get-PluralCategory -LanguageCode $LanguageCode -Count $Count | Should -Be 'other'
|
||||
}
|
||||
|
||||
It 'returns <Expected> for a Portuguese count of <Count>' -ForEach @(
|
||||
@{ Count = 0; Expected = 'one' }
|
||||
@{ Count = 1; Expected = 'one' }
|
||||
@{ Count = 2; Expected = 'other' }
|
||||
@{ Count = 100; Expected = 'other' }
|
||||
@{ Count = 999999; Expected = 'other' }
|
||||
@{ Count = 1000000; Expected = 'many' }
|
||||
@{ Count = 1000001; Expected = 'other' }
|
||||
@{ Count = 2000000; Expected = 'many' }
|
||||
) {
|
||||
Get-PluralCategory -LanguageCode 'pt-BR' -Count $Count | Should -Be $Expected
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user