Skip to content

Commit eed339f

Browse files
committed
Try Default Locale Rather than English
1 parent 81440e7 commit eed339f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v4
2727

2828
- name: Install locales
29-
run: sudo apt-get install -y language-pack-fr language-pack-de language-pack-en
29+
run: sudo apt-get install -y language-pack-fr language-pack-de
3030

3131
- name: Setup PHP, with composer and extensions
3232
uses: shivammathur/setup-php@v2

tests/PhpSpreadsheetTests/Shared/StringHelperLocaleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function testCurrency(): void
3737
}
3838
$result = StringHelper::getCurrencyCode();
3939
self::assertSame('', $result);
40-
if (!setlocale(LC_ALL, 'en_ca', 'en_CA')) {
41-
self::markTestSkipped('Unable to set en_ca locale for testing.');
40+
if (!setlocale(LC_ALL, $this->currentLocale)) {
41+
self::markTestSkipped('Unable to restore default locale.');
4242
}
4343
$result = StringHelper::getCurrencyCode();
4444
self::assertSame('', $result, 'result persists despite locale change');

0 commit comments

Comments
 (0)