Skip to content

Commit

Permalink
Added punctuation to en.yml. Remove fallbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
vietqhoang committed May 21, 2018
1 parent 8a18bbd commit 02131b4
Show file tree
Hide file tree
Showing 2 changed files with 717 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/faker/lorem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def questions(question_count = 3, supplemental = false)

private
def locale_period
translate('faker.lorem.punctuation.period') || '.'
translate('faker.lorem.punctuation.period')
end

def locale_space
translate('faker.lorem.punctuation.space') || ' '
translate('faker.lorem.punctuation.space')
end

def locale_question_mark
translate('faker.lorem.punctuation.question_mark') || '?'
translate('faker.lorem.punctuation.question_mark')
end

# If an array or range is passed, a random value will be selected.
Expand Down
Loading

0 comments on commit 02131b4

Please # to comment.