Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastlane-plugin-simple_loco

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastlane-plugin-simple_loco

  • 2.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

simple_loco plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-simple_loco, add it to your project by running:

fastlane add_plugin simple_loco

About simple_loco

A simple implementation for exporting translations from Loco.

This plugin is heavily inspired by https://github.com/JohnPaulConcierge/fastlane-plugin-loco, but some functionality has been removed and added. This plugin acts primarily as a wrapper implementation around the export single locale API call of Loco (see https://localise.biz/api/docs/export/exportlocale for full details).

There is advanced support for the following platforms:

  • Android
  • iOS
  • Xamarin (with resx resource files)
  • Flutter (with arb files)

For the platforms above, an extra adapter is available to create the correct folder and files needed to use the translations.

For other platforms, a default implementation is provided (translation files will be saved like <provided folder>/<provided file name>.<locale>.<extension>). If a custom file name is provided, then the name of the file for the default locale won't contain the locale. If no custom file name is provided, then the locale will be used instead.

This plugin contains a single action simple_loco.

This action uses a configuration file to generate the correct API call.

The config file specifies the following properties:

  • locales: List of locales to fetch
  • directory: Directory to move translation files to
  • platform: Platform for the translations: choice between:
    • android
    • ios
    • xamarin
    • flutter
    • custom
  • key: Key of the Loco project
  • Optional parameters:
    • format
    • filter
    • index
    • source
    • namespace
    • fallback
    • order
    • status
    • printf
    • charset
    • breaks
    • no_comments
    • no_folding

For an explanation of the optional parameters, please see the official API reference: https://localise.biz/api/docs/export/exportlocale

Example of a JSON config file:

{
    "locales" : [
      "en",
      "fr",
      "nl",
      "de"
    ],
    "directory" : "src/main/res",
    "platform" : "android",
    "key" : "<Your key here>",
    "fallback" : "en",
    "order": "id",
    "filter": ["android"]
}

Or in YAML:

locales:
  - en
  - fr
  - nl
  - de
directory: src/main/res
platform: custom
key: <your key here>
fallback: en
order: id
custom_extension: .xml
custom_file_name: strings

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

FAQs

Package last updated on 13 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc