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"
22
33gem "rake" , "~> 10.3.2"
44gem "minitest" , "~> 5.3.5"
5+ gem "i18n" , "~> 1.8.5"
56
67gemspec
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ require "i18n"
34require 'emoji'
45require 'json'
56require_relative './emoji-test-parser'
67
8+ I18n . config . available_locales = :en
79items = [ ]
810
911_ , categories = EmojiTestParser . parse ( File . expand_path ( "../../vendor/unicode-emoji-test.txt" , __FILE__ ) )
3436 )
3537 else
3638 output_item . update (
37- aliases : [ description . gsub ( /\W +/ , '_' ) . downcase ] ,
39+ aliases : [ I18n . transliterate ( description ) . gsub ( /\W +/ , '_' ) . downcase ] ,
3840 tags : [ ] ,
3941 unicode_version : "13.0" ,
4042 ios_version : "14.0" ,
You can’t perform that action at this time.
0 commit comments