fastlane-plugin-translate_gpt_release_notes 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/translate_gpt_release_notes/actions/translate_gpt_release_notes_action.rb +2 -2
- data/lib/fastlane/plugin/translate_gpt_release_notes/helper/glossary_loader.rb +5 -5
- data/lib/fastlane/plugin/translate_gpt_release_notes/helper/providers/base_provider.rb +1 -1
- data/lib/fastlane/plugin/translate_gpt_release_notes/helper/translate_gpt_release_notes_helper.rb +1 -1
- data/lib/fastlane/plugin/translate_gpt_release_notes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c81e4204776fc196d3b5c501dfc1e53ee7c9c4d7a9c343e7a4114d54b722f673
|
|
4
|
+
data.tar.gz: 4eed66073550200dd9701146b9e1b2eb43e0aa7d158c616004c83f91b99d5bb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23451dcaefe13ed1a730d28e89d14403d76691e4608241bab8923a0234751bd8c43e69a58473c458f6ffbd1cf8310159f45730b3b0d25655674fc3056ebc3cbd
|
|
7
|
+
data.tar.gz: 41fe7e666190afddda66c50f2d3fbce6011d2b4fe4f762f4d1613ccd8ac17078aca5e084826effdc0f9f326dfc617ebd203260a714f8f4232a9ef6cf27f48a56
|
data/lib/fastlane/plugin/translate_gpt_release_notes/actions/translate_gpt_release_notes_action.rb
CHANGED
|
@@ -121,7 +121,7 @@ module Fastlane
|
|
|
121
121
|
|
|
122
122
|
def self.print_locale_preview(locale, text, android_limit, platform)
|
|
123
123
|
if text.nil? || text.to_s.strip.empty?
|
|
124
|
-
UI.
|
|
124
|
+
UI.important(" #{locale}: translation FAILED (would be skipped)")
|
|
125
125
|
return
|
|
126
126
|
end
|
|
127
127
|
length = text.length
|
|
@@ -135,7 +135,7 @@ module Fastlane
|
|
|
135
135
|
next if locale == params[:master_locale] # Skip master locale
|
|
136
136
|
|
|
137
137
|
if translation_empty?(text)
|
|
138
|
-
UI.
|
|
138
|
+
UI.important("Skipping #{locale}: translation failed or returned empty; existing file left unchanged.")
|
|
139
139
|
next
|
|
140
140
|
end
|
|
141
141
|
|
|
@@ -86,7 +86,7 @@ module Fastlane
|
|
|
86
86
|
# @param path [String] Path to the JSON glossary file
|
|
87
87
|
def load_from_file(path)
|
|
88
88
|
unless File.exist?(path)
|
|
89
|
-
UI.
|
|
89
|
+
UI.important("Glossary file not found: #{path}")
|
|
90
90
|
return
|
|
91
91
|
end
|
|
92
92
|
|
|
@@ -112,13 +112,13 @@ module Fastlane
|
|
|
112
112
|
# @param dir [String] Path to the directory containing localization files
|
|
113
113
|
def load_from_directory(dir)
|
|
114
114
|
unless Dir.exist?(dir)
|
|
115
|
-
UI.
|
|
115
|
+
UI.important("Glossary directory not found: #{dir}")
|
|
116
116
|
return
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
format = detect_format(dir)
|
|
120
120
|
unless format
|
|
121
|
-
UI.
|
|
121
|
+
UI.important("No supported localization files found in #{dir}")
|
|
122
122
|
return
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -127,7 +127,7 @@ module Fastlane
|
|
|
127
127
|
|
|
128
128
|
source_key = find_source_locale_key(locale_files)
|
|
129
129
|
unless source_key
|
|
130
|
-
UI.
|
|
130
|
+
UI.important("Source locale '#{@source_locale}' not found in #{dir}")
|
|
131
131
|
return
|
|
132
132
|
end
|
|
133
133
|
|
|
@@ -282,7 +282,7 @@ module Fastlane
|
|
|
282
282
|
else {}
|
|
283
283
|
end
|
|
284
284
|
rescue StandardError => e
|
|
285
|
-
UI.
|
|
285
|
+
UI.important("Failed to parse #{path}: #{e.message}")
|
|
286
286
|
{}
|
|
287
287
|
end
|
|
288
288
|
|
|
@@ -182,7 +182,7 @@ module Fastlane
|
|
|
182
182
|
def enforce_android_limit(text)
|
|
183
183
|
return text unless @params[:platform] == 'android' && text && text.length > ANDROID_CHAR_LIMIT
|
|
184
184
|
|
|
185
|
-
UI.
|
|
185
|
+
UI.important("Translation exceeds #{ANDROID_CHAR_LIMIT} characters (#{text.length}), truncating...")
|
|
186
186
|
text[0...ANDROID_CHAR_LIMIT]
|
|
187
187
|
end
|
|
188
188
|
|
data/lib/fastlane/plugin/translate_gpt_release_notes/helper/translate_gpt_release_notes_helper.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Fastlane
|
|
|
13
13
|
|
|
14
14
|
# Validate provider selection
|
|
15
15
|
unless Providers::ProviderFactory.valid_provider?(provider_name)
|
|
16
|
-
UI.
|
|
16
|
+
UI.important "Unknown provider '#{provider_name}', falling back to OpenAI"
|
|
17
17
|
provider_name = 'openai'
|
|
18
18
|
end
|
|
19
19
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-translate_gpt_release_notes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anton Karliner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby-openai
|