Skip to content

Commit

Permalink
Fix readme; remove debugging line; fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Aug 28, 2023
1 parent 0c04fcc commit 361c6b0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ TwitterCLDR supports formatting numbers with an attached unit, for example "12 d

```ruby
12.localize.to_unit.length_mile # <%= assert(12.localize.to_unit.length_mile, "12 miles").inspect %>
12.localize(:ru).to_unit.length_mile # <%= assert(12.localize(:ru).to_unit.length_mile, "12 милях").inspect %>
12.localize(:ru).to_unit.length_mile # <%= assert(12.localize(:ru).to_unit.length_mile, "12 миль").inspect %>
```
Units support a few different forms, long, short, and narrow:

Expand Down
2 changes: 1 addition & 1 deletion lib/twitter_cldr/resources/readme_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def render
ERB.new(text).result(binding)
end

def datetimew
def datetime
@datetime ||= DateTime.new(2014, 2, 14, 12, 20, 5, 0)
end

Expand Down
1 change: 0 additions & 1 deletion lib/twitter_cldr/transforms/transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Transformer

class << self
def exists?(transform_id_or_str)
$cameron = true if transform_id_or_str == "cs-ja"
!!get(transform_id_or_str)
rescue => e
false
Expand Down
File renamed without changes.

0 comments on commit 361c6b0

Please sign in to comment.