frappe-ui icon indicating copy to clipboard operation
frappe-ui copied to clipboard

feat: Translation plugin

Open shariquerik opened this issue 1 year ago • 2 comments

import { translationPlugin } from 'frappe-ui'
app.use(translationPlugin)

Examples

__('Hello')
__('{0} of {1}', [3, 100])

fixes: #233 dependent on: https://github.com/frappe/frappe/pull/28638

shariquerik avatar Dec 02 '24 11:12 shariquerik

Deploy Preview for frappeui ready!

Name Link
Latest commit 0a4bfdf2b65d770d25fa69852b1fb6e7f1129a2e
Latest deploy log https://app.netlify.com/sites/frappeui/deploys/674da5f1a54a3f00086ac06b
Deploy Preview https://deploy-preview-232--frappeui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Dec 02 '24 11:12 netlify[bot]

This PR is incomplete without an accompanying python package, because it depends on translated strings to be set on window.

netchampfaris avatar Dec 03 '24 08:12 netchampfaris