File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ source "https://rubygems.org"
2
2
3
3
gem "rake" , "~> 10.3.2"
4
4
gem "minitest" , "~> 5.3.5"
5
+ gem "i18n" , "~> 1.8.5"
5
6
6
7
gemspec
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require "i18n"
3
4
require 'emoji'
4
5
require 'json'
5
6
require_relative './emoji-test-parser'
6
7
8
+ I18n . config . available_locales = :en
7
9
items = [ ]
8
10
9
11
_ , categories = EmojiTestParser . parse ( File . expand_path ( "../../vendor/unicode-emoji-test.txt" , __FILE__ ) )
34
36
)
35
37
else
36
38
output_item . update (
37
- aliases : [ description . gsub ( /\W +/ , '_' ) . downcase ] ,
39
+ aliases : [ I18n . transliterate ( description ) . gsub ( /\W +/ , '_' ) . downcase ] ,
38
40
tags : [ ] ,
39
41
unicode_version : "13.0" ,
40
42
ios_version : "14.0" ,
You can’t perform that action at this time.
0 commit comments