Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8dfc9ed

Browse files
authoredAug 13, 2021
typos
1 parent 61147cf commit 8dfc9ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎lib/fastlane/plugin/wpmreleasetoolkit/models/locales.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def all
9090
#
9191
# Those can be used in the rare cases where you need to find locales via codes other than the glotpress ones,
9292
# like searching by android locale code(s) or google_play locale code(s).
93-
# In most cases, prefer using the `Locales[…]` method instead ()with glotpress locale codes).
93+
# In most cases, prefer using the `Locales[…]` method instead (with glotpress locale codes).
9494
#
9595
# @param [Array<String>, String] list of locale codes to search for, or single value for single result
9696
# @return [Array<Locale>, Locale] list of found locales, or single locale if a single value was passed

‎spec/locales_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
it 'raises if one of the locale codes passed was not found' do
2727
expect do
28-
described_class.send(method_sym, [fr_code, 'invalidcode', 'pt-br'])
28+
described_class.send(method_sym, [fr_code, 'invalidcode', pt_code])
2929
end.to raise_error(RuntimeError, "Unknown locale for #{key} code 'invalidcode'")
3030
end
3131
end

0 commit comments

Comments
 (0)
Please sign in to comment.