Skip to content

Commit

Permalink
v10.1.3 Tranlsation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rbroens committed Jan 6, 2025
1 parent 1f815b9 commit 281c89e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## v1.10.3
- Added new translations for Budiyu support

## v1.10.1
- Now uses sub command to check if build is for iOS

Expand Down
6 changes: 3 additions & 3 deletions lib/commands/import/translations_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def getTranslations
def parse(translations)
puts colored :blue, "\n#{CHAR_FLAG} Parsing translations"

allowedLocales = [ "da", "da_DK", "de", "el", "en-AU", "en-CA", "en-GB", "en-US", "es", "es-MX", "fi", "fr-CA", "fr", "id", "it", "ja", "ko", "ms", "nl", "no", "pt-BR", "pt", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant", "appleTV", "iMessage", "default" ]
allowedLocales = [ "nl-BE", "de-CH", "fr-BE", "da", "da_DK", "de", "de-AT", "de_AT", "el", "en-AU", "en-CA", "en-GB", "en-US", "es", "es-MX", "fi", "fr-CA", "fr", "id", "it", "ja", "ko", "ms", "nl", "no", "pt-BR", "pt", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant", "appleTV", "iMessage", "default" ]
allowedLocales.each { |loc|
if loc.length == 2
allowedLocales << "#{loc}-#{loc.upcase}"
Expand Down Expand Up @@ -135,8 +135,8 @@ def parse(translations)

# Last check if we are able to handle the locale
if !allowedLocales.include?(localeWithDash) && !allowedLocales.include?(locale)
unless handled_unsupported_locals.include?(locale)
handled_unsupported_locals << locale
unless handledUnsupportedLocals.include?(locale)
handledUnsupportedLocals << locale
warn colored :red, "#{CHAR_WARNING} Warning: Unsupported appstore locale: '#{localeWithDash}'"
end
next
Expand Down
2 changes: 1 addition & 1 deletion lib/flttr/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Flttr
VERSION = '1.10.1'
VERSION = '1.10.3'
end

0 comments on commit 281c89e

Please sign in to comment.