What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
hello. does spryker have the translations functionality in javascript?
hello. does spryker have the translations functionality in javascript?
Comments
-
Not sure about JS, but you definitely have it in twig (
trans
filter).0 -
in twig i know. but i need in js
0 -
for example smth similar to magento like
$.mage.__('String to translate')
0 -
I'm not sure you're even supposed to be doing that. Why would you need a translation in JS?
0 -
for example i want to add custom frontend form validation and need to show error messages in current language.
or another case. i have payment integration with payone and it also validates the credit card form and return the error messages. I want to change the text of this messages to the custom one in current language0 -
Ah, ok. I'm more into BE, so hopefully someone else will be able to help you there. π
0 -
Just an idea, though: could you perhaps put the possible error messages with their glossary entries into those page's twigs in advance, by default, translate them there (in the twig), and just hide them, only revealing them (with JS) in case of an error?
0 -
yes i was thinking about it. but this is ok for 1-2 messages as for me. i have around 5-6. and what if customer will want to extend the list?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random