Code Monkey home page Code Monkey logo

wording's People

Contributors

afrianjunior avatar r17x avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

subekti404dev

wording's Issues

i18n #hacktoberfest

i18n is a library to allow you to access wording from JSON (extracted by CLI) by key.

TODO:

  • API for an extract from key, ex: tbuy
  • config option for selecting a language and source location

Requirements:

  • write this package under babel-macros

Example:

API translation

import { t } from 'i18n.macro'

function Render () {
  return t`buy`
}

Config package.json

{
  "name": "@efishery/i18n",
  "babelMacros": {
    "i18n.macro": {
      "lang": "id",
      "source": "<json path>"
    }
  }
}

cli #hacktoberfest

We need CLI to extract data translation from our spreadsheet

Example spreadsheet https://docs.google.com/spreadsheets/d/12kxsNITg_kHRCs7DUYUOqzj-tXzdO3r0nGUYMHvAQlo/edit#gid=0

TODO:

  • cli init package arc follow this convention eword COMMAND [OPTIONS]
  • cli command pull [OPTIONS]
    • spreadsheet id --spreadsheet-id <spreadsheet id>
    • out dir --outdir <path>

Example:
pull data translation from 12kxsNITg_kHRCs7DUYUOqzj-tXzdO3r0nGUYMHvAQlo to app/constant/data.json

$ eword pull --spreadsheet-id 12kxsNITg_kHRCs7DUYUOqzj-tXzdO3r0nGUYMHvAQlo --out-dir app/constant/data.json

Init workspace #hacktoberfest

We need monorepo arc to build this Wording project.

packages:

  • #6
  • #4
    • This package is a translator library
  • #5
    • This package is for syncing translation data from the spreadsheet

requirement:

  • yarn as package manager
  • turbopack as monorepo tools
  • setup eslint with standardjs
  • prettier
  • conventional commit
  • lint staged with husky
  • commit lint with conventional commit
  • deployment release tp npm
  • setup jest
  • Semantic version
  • TDD first

i18n #hacktoberfest

i18n is a library to allow you to access wording from JSON (extracted by CLI) by key.

TODO:

  • API for an extract from key, ex: tbuy
  • config option for selecting a language and source location

Requirements:

  • write this package under babel-macros

Example:

API translation

import { t } from 'i18n.macro'

function Render () {
  return t`buy`
}

Config package.json

{
  "name": "@efishery/i18n",
  "babelMacros": {
    "i18n.macro": {
      "lang": "id",
      "source": "<json path>"
    }
  }
}

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.