For some reason many of our users are getting Bulgarian when first visiting our site. This seems to happen in Internet Explorer more than any other browser. Any what could trigger this? Bulgarian also happens to be the first language listed in the widget. Any pointers on what could be happening would be helpful.
Posted by Blair Callicott 2 years ago
Certain elements on the same page are translatable, where as others return the message "The selected phrase was not found". For example, on the page https://luster.cc/flip-disc/ under the GIZMODO, WIRED, TechCrunch and ADWeek logos, there are texts that cannot be localized. Other text on the same page localize fine.
Posted by Shawn Albert 2 years ago
When I use the backend api to POST a new phrase, it ends up in the "Pending" status. The project has the option for automatically ordering machine translations enabled. Is there any way that phrases submitted via the backend api can also be automatically ordered?
Posted by Kevin S. 2 years ago
I'm trying to get our active phrases using the API. In the documentation at https://help.localizejs.com/reference#projectsprojectkeyfsdfsdfsdf, a query param of 'limit' is listed with a maximum of 5000. However, the limit appears to actually be a max of 1000. Is there any way around that 1000 limit? I want to retrieve all active phrases from our account, and it seems this API is the only way to do that.
Posted by Patrick Chevallard 2 years ago
I'm looking to apply SRI hashing to the code snippet provided by Localize to our site's header such as this: <script src="https://global.localizecdn.com/localize.js" integrity="sha384-<inserted hash value here" crossorigin="anonymous"></script> <script>!function(a){if(!a.Localize){a.Localize={};for(var e=["translate","untranslate","phrase","initialize","translatePage","setLanguage","getLanguage","detectLanguage","getAvailableLanguages","untranslatePage","bootstrap","prefetch","on","off"],t=0;t<e.length;t++)a.Localize[e[t]]=function(){}}}(window);</script> <script> Localize.initialize({ key: 'B4zTsWcVRDLMr', rememberLanguage: true }); </script> However, upon generating a hash I get this message: "Error: this resource is not eligible for integrity checks. See https://enable-cors.org/server.html" I was hoping to do this for security reasons. Is there any way to achieve this?
Posted by Shane Fast 2 years ago
Hi, We have a project for mobile app wherein context information and screenshots are added for each phrase. We are whitelabeling this app and we would like to duplicate this project and provide it to multiple customers to review and update text as per their requirement. It is possible to create duplicate project with context information and screenshots being copied to new project.
Posted by Anant 2 years ago
on our platform we run a Wordpress CMS and combine it with our own tools. Our tools, we need localize.js. On the CMS site we can use Localize but can also do the straight translation. Questions: is there a way to have the CMS call the localize.js widget to translate other areas. so when someone selects "French" it also activates localize in other parts of the site? Also, we have banners - images. We have a french version and english version. When you select to translate, it calls either the french or english banner. Can you link localize to swap these banners in Wordpress?
Posted by Shane Hambly 2 years ago
Our website has the following HTML (simplified here for clarity): ``` <label>Event Title</label> <input type="text" placeholder="Search..."> ``` We use Bootstrap v3.3, AngularJS, React and a mixture of things. The `placeholder` attribute is part of an HTML5 spec. It displays 'Search...' in light grey within the text box until a user types something. It is the browser displaying the placeholder in its internal rendering mechanism, there is no additional JS/CSS making the placeholder happen. In the example above I used 'Search...' but we use all sorts of phrases throughout our app depending on context. LocalizeJS is not picking this phrase up at all. What's the best way to proceed to have the placeholder translated? I thought about a rough solution which would be some kind of `$.ready()` style function executed on document load where: 1. For each HTML element that is an `input` and has attribute `placeholder` 1. get the value of `placeholder` 2. make a `Localize.translate()` call to translate that value 3. use some jQuery to re-set the `placeholder` attribute to the new value It feels a little rough and gross and I wonder if there is a mechanism that would allow us to do this. I keep thinking somebody else must have come across this problem. Thanks for the advice, Tommaso, Edinburgh (Scotland)
Posted by Tommaso D'Odorico 2 years ago