wording's People
Forkers
subekti404devwording'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: t
buy
- 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>
- spreadsheet id
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
cli #hacktoberfest
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
init project
Based on #1
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: t
buy
- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.