0.0.12 • Published 5 years ago

gnextia-util v0.0.12

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

gnextia-util

To start
npm run make
npm test
Image version
import { Img, img } from "gnextia"

<Img src="/img/logo.svg" />
// to html
<img src="/img/logo.svg?<VERSION>" />

const myImg = img("/img/logo.svg")
// to
const myImg = "/img/logo.svg?<VERSION>"
background: img('/img/logo.svg') no-repeat fixed center;
/* to css */
background: url('/img/logo.svg?<VERSION>') no-repeat fixed center;
i18n (Internationalization and localization)
# env.yml
i18n:
  default: en
  locales:
    - en
    - es
# i18n.yml
user:
  name:
    - My name is {0} {1} {2}
    - Mi nombre es {0} {1} {2}
import { I18n, i18n } from 'gnextia'

// jsx
<I18n name="user.name" args={['Sinuhe', 'Maceda', 'Bouchan']} />
// js
i18n('user.name', ['Sinuhe', 'Maceda', 'Bouchan'])
0.0.11

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago