Skip to content

Commit

Permalink
Merge pull request #13 from cookpad/horiso/remove-thai
Browse files Browse the repository at this point in the history
Remove Thai from continuous language locale
  • Loading branch information
sota-horiuchi authored Mar 28, 2024
2 parents e7326c9 + aef46f0 commit 502407d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ingreedy/continuous_language_locale.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Ingreedy
module ContinuousLanguageLocale
CONTINUOUS_LANGUAGES_LOCALES = %i(ja th zh-TW)
CONTINUOUS_LANGUAGES_LOCALES = %i(ja zh-TW)

def use_whitespace?(locale)
!CONTINUOUS_LANGUAGES_LOCALES.include?(locale)
Expand Down
1 change: 0 additions & 1 deletion spec/ingreedy/continuouse_language_locale_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
context 'when the locale is a continuous language' do
it 'returns false' do
expect(use_whitespace?(:ja)).to be_falsey
expect(use_whitespace?(:th)).to be_falsey
expect(use_whitespace?(:'zh-TW')).to be_falsey
end
end
Expand Down

0 comments on commit 502407d

Please sign in to comment.