Skip to content

Conversation

@shariquerik
Copy link
Member

@shariquerik shariquerik commented Dec 2, 2024

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

Examples

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

fixes: #233
dependent on: frappe/frappe#28638

@netlify
Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for frappeui ready!

Name Link
🔨 Latest commit 0a4bfdf
🔍 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.

@netchampfaris
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translation plugin

3 participants