diff --git a/.github/ISSUE_TEMPLATE/language_request.yml b/.github/ISSUE_TEMPLATE/language_request.yml index 6f768cd7479..fad9ef1e83f 100644 --- a/.github/ISSUE_TEMPLATE/language_request.yml +++ b/.github/ISSUE_TEMPLATE/language_request.yml @@ -1,5 +1,5 @@ name: Language Request -description: Request a new language to be added to CrowdIn for you to translate +description: Request a new language to be added to Crowdin for you to translate labels: [":earth_africa: Translations"] assignees: - ssddanbrown @@ -23,7 +23,7 @@ body: This issue template is to request a new language be added to our [Crowdin translation management project](https://crowdin.com/project/bookstack). Please don't use this template to request a new language that you are not prepared to provide translations for. options: - - label: I confirm I'm offering to help translate for this new language via CrowdIn. + - label: I confirm I'm offering to help translate for this new language via Crowdin. required: true - type: markdown attributes: diff --git a/tests/LanguageTest.php b/tests/LanguageTest.php index ef44af0eebd..4e96027cdb9 100644 --- a/tests/LanguageTest.php +++ b/tests/LanguageTest.php @@ -18,9 +18,11 @@ protected function setUp(): void public function test_locales_config_key_set_properly() { $configLocales = config('app.locales'); - sort($configLocales); - sort($this->langs); - $this->assertEquals(implode(':', $configLocales), implode(':', $this->langs), 'app.locales configuration variable does not match those found in lang files'); + + $this->assertEmpty( + array_diff($configLocales, $this->langs), + 'app.locales configuration variable does not match those found in lang files' + ); } // Not part of standard phpunit test runs since we sometimes expect non-added langs.