SkillAgentSearch skills...

StringResourcesConverter

String Resources Converter

Install / Use

/learn @skedgo/StringResourcesConverter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StringResourcesConverter

<a href="https://travis-ci.org/skedgo/StringResourcesConverter"><img src='https://travis-ci.org/skedgo/StringResourcesConverter.svg?branch=master'></a>

Install

Gradle:

    maven {
        url 'https://dl.bintray.com/elagarrigue/maven'
    }
      
    compile 'com.skedgo:string-resources-converter:0.1.1'

Maven:

    <dependency>
        <groupId>com.skedgo</groupId>
        <artifactId>string-resources-converter</artifactId>
        <version>0.1.1</version>
    </dependency>

Motivation

String localization through different platforms can be tricky, specially if it's not planned at the beginning of the project. That may lead to a situation when you have one platform localized and you want to reuse those resources and export them to others.

Implementation

This module follows the Strategy design pattern. The idea is to create Input and Output String Resources platform-specific algorithms for parsing the input and generate the output.

Usage example

The general steps are:

  • InputStringStrategy.getInputValues() to parse the input resource.
  • OutputStringStrategy.generateOutput() to generate the specific platform string resource.

Check StrategyTest

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated5mo ago
Forks2

Languages

Kotlin

Security Score

82/100

Audited on Oct 6, 2025

No findings