INNER CODE UNIT · Ruby

all_app_locales

wordpress-mobile/WordPress-Android · fastlane/lanes/localization.rb:233

          all_app_locales = locales + [%w[en en-US]]
          all_app_locales.each_value do |google_play_locale|
            changelog_dir = File.join(metadata_download_path, google_play_locale, 'changelogs')
            FileUtils.mkdir_p(changelog_dir)
            File.write(File.join(changelog_dir, 'default.txt'), '')
          end
        else
          # Make sure to also download the release notes translations as the source file (release_notes.txt) is not empty
          files["release_note_#{version_suffix}"] = {
            desc: 'changelogs/default.txt',
            max_size: 500,
            alternate_key: "release_note_short_#{version_suffix}"
          }
        end
      end

      # Add key mappings for `screenshots_*` files too
      Dir.glob('screenshot_*.txt', base: metadata_source_dir).each do |f|

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…