Fix invalid locale error

This commit is contained in:
Douglas Eichelberger 2023-03-08 09:50:04 -08:00
parent 999594dc07
commit 13b6825c2d

View File

@ -5,6 +5,9 @@ require "cli/parser"
require "erb" require "erb"
require "i18n" require "i18n"
I18n.backend.available_locales # Initialize locales so they can be overwritten.
I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }
SOURCE_PATH = (HOMEBREW_LIBRARY_PATH/"manpages").freeze SOURCE_PATH = (HOMEBREW_LIBRARY_PATH/"manpages").freeze
TARGET_MAN_PATH = (HOMEBREW_REPOSITORY/"manpages").freeze TARGET_MAN_PATH = (HOMEBREW_REPOSITORY/"manpages").freeze
TARGET_DOC_PATH = (HOMEBREW_REPOSITORY/"docs").freeze TARGET_DOC_PATH = (HOMEBREW_REPOSITORY/"docs").freeze