Sha256: 92795203e42cbe4a384885916c8e7dd09f802cea8a10a70eb9b92f25ea9408c6
Contents?: true
Size: 520 Bytes
Versions: 14
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true require_relative 'language' require_relative 'region' module LittleWeasel module Modules # This module provides methods to handle conversion of parts of a locale to # their string counter parts. module Locale include Language include Region def locale language = normalize_language self.language return language.to_s unless region? region = normalize_region self.region "#{language}-#{region}" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems