Coder Social home page Coder Social logo

s0nerik / goloc Goto Github PK

View Code? Open in Web Editor NEW
54.0 6.0 8.0 2.17 MB

A flexible tool for application localization using Google Sheets.

License: MIT License

Go 98.17% Shell 1.83%
golang localization tool google-sheets mobile android ios flutter csv json intl internationalization dart i18n

goloc's Issues

Add support for region codes

We found ourselves facing a situation where we need to use region-specific localization, but we don't see any way to do it with goloc.

Example of language tags with region components: fr-FR, fr-CA, en-GB, en-US, ar-KW, ar-SA.

Example of resource folder names on android: values-fr-rFR, values-fr-rCA, values-en-rGB, values-en-rUS.

Add support for annotated string parts

image

Android supports custom tags inside string resources. This can be represented in a localization document by adding support for string part annotations.

The basic requirements are:

  • The annotation itself must only be added for platforms that support adding metadata to resource strings, otherwise the annotation must be omitted
  • Annotations may or may not contain additional metadata in them (design needed)
  • Each supported platform is responsible of formatting the annotated part of the string

[Build] Could not build binary from source code.

Problem:

Could not build the binary from source code.

  1. Clone repo.
  2. Go to folder.
  3. Try to build.
$ sh build.sh  
  1. Receive an error.
3 errors occurred:
--> darwin/amd64 error: exit status 1
Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/tree/master/goloc" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOPATH)
main.go:7:2: cannot find package "github.com/s0nerik/goloc/tree/master/platforms/resolver" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOPATH)
main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT)
        /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH)
--> windows/amd64 error: exit status 1
Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/tree/master/goloc" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOPATH)
main.go:7:2: cannot find package "github.com/s0nerik/goloc/tree/master/platforms/resolver" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOPATH)
main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT)
        /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH)
--> linux/amd64 error: exit status 1
Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/tree/master/goloc" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/goloc (from $GOPATH)
main.go:7:2: cannot find package "github.com/s0nerik/goloc/tree/master/platforms/resolver" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOROOT)
        /Users/MSavisko/go/src/github.com/s0nerik/goloc/tree/master/platforms/resolver (from $GOPATH)
main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of:
        /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT)
        /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH)  

Configuration:

1. OS: macOS High Sierra 10.13.4
2. GO: go1.10.2 darwin/amd64
3. Gox: stable 0.4.0 (bottled)
4. Source: v0.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.