Arabic custom actions with google assistant? - action

I want to create arabic custom actions with google assistant but when I try to change language settings from english to arabic in the developer action console I can't find Arabic, and the users will then be able to interact with your actions in the selected languages! Does anyone has an idea? is it possible to create arabic google actions?

I found this documentation about languages and locals for google actions https://developers.google.com/assistant/console/languages-locales it doesn't contain arabic language, I think it's not available for the moment.

Related

Programmatically help user create a shortcut for watchKit app?

a newbie question.
I want to make it easy for users to create a shortcut to use Siri with a watchKit app. The app runs as a companion to an iOS version.
Where I've gotten so far: Users can successfully use Siri to make a voice request for each of the watchKit and iOS apps via intent extensions that I’ve created. That is, they can do so after a shortcut is available (e.g. “Hey Siri, jot myself”).
I would love to programmatically help users create both of these shortcuts. I’m stuck on the watchKit side, though.
The closest I’ve been able to get to make it easy for users to create shortcuts is:
On the iOS app, as part of the app's onboarding, provide an “Add to Siri” button. (This works fine)
Then, ask the user to go into Shortcuts in iOS, find the shortcut, look at its “Details” and toggle “Show on Apple Watch”. (This seems like it would be hard for users and I’m afraid asking them to do it will lose them.)
Is there a better way to help users set up the watchKit shortcut? Advice appreciated.

Azure B2C Dual Language Custom User Flow Template

I've created a custom template for B2C Sign In User flow. I wanted to add instruction text on the top of the page in 2 languages, so I created 2 templates, uploaded them to folders in blob storage.
When I insert a link to the User flow it is working for separated languages, but once I add a wildcard value {Culture:RFC5646} (which is recommended on MS docs) it doesn't work.
Have you got any ideas or advices of how this needs to be done?
Just to add another issue to this: the language is custom.
Thanks!
The language customization feature allows Azure AD B2C to pass the OpenID Connect parameter ui_locales to your endpoint. Your content server can use this parameter to provide language-specific HTML pages. The important thing is that the parameters must be passed in here.
Reference : azure b2c - custom UI - localize custom label
I managed to find the answer.
Instead of {Culture:RFC5646} I've added {Culture:LanguageName} and it fixed the issue!
Link below:
Question about Culture:RFC5646 and ContentDefinitions

Facebook API for custom feelings/activity

I was searching in the Facebook API documentation, but I can't find what I am looking for. So, what I am looking for is is there an API for creating your custom DO action. For example:
John Johson is riding a bike.
What I want is to send this 'riding' as a custom word coming from my app. And also 'bike' as a custom item as well.
The other example I can think about is the running apps in Facebook. When you start to run and connect the app with your Facebook the app can say.
John Johson is running using Runtastic.
Thanks!
Well, you’re a little too late on that one.
That used to be possible, it was called Custom Open Graph Actions - https://developers.facebook.com/docs/sharing/opengraph/custom
But those are now deprecated, you can not use them any more in new apps (and for existing ones, they will be removed within a year as well), see https://developers.facebook.com/docs/sharing/opengraph/custom-open-graph-deprecation
Now you can only use the built-in actions and objects, https://developers.facebook.com/docs/reference/opengraph

How to enable latest Twitter feeds for organization in Sitecore 8

I am working on sitecore 8, I have installed MongoDB and I am wondering how i can get the Social Media enable in my sitecore. I want to show the latest twitter feed of the organization on page. Through some search I got to know sitecore 8 have given this feature out of the box.
Could anyone help me in this.
Thanks in advance.
Why do you need to do it via Sitecore?
Twitter has page for creation widgets: https://twitter.com/settings/widgets/new (You should be logged in to Twitter to create widget). You are able to create any widget for organization (by Twitter username), for tag (by Twitter hashtag), etc. You can copy code from Twitter to your sublayout and use it.
It has sense to do it using Sitecore Social only if you want to show different Twitter spots for different Twitter users.(But you said that you want to do it for organization). In this case, please follow documentation on dev.sitecore.net or sdn.sitecore.net
widgets are soon to be deprecated, try to use https://publish.twitter.com/ instead, it provides several options to customize how you want the feed to be viewed, and you'll only need to include the html in the layout or specific view you want in sitecore.

Language versioning, security permissions and workflows in Sitecore

We have a multiple site, multiple language solution. We have a particular site (Site A) where we wish to have English as a "master" language, which is then translated and published in various other languages. We wish to prevent e.g. a French editor being able to edit and publish in any other language than French.
However, the French editor will have both English and French language read/write permissions, for their work on another part of the solution (Site B), so we can't use these to specify directly which permissions they have on Site A. We also use only removal of inheritence to limit role permissions, and never explicit denial, so permissions are cumulative.
Is it possible to create language specific workflows, with associated roles assigned to them, to prevent this editor from editing or publishing items in other languages?
Note: it would also be OK if this editor could publish in all languages, but only language versions that had been moved to the "publishable" state, and couldn't make a foreign language version publishable himself (so that if he did publish e.g. a German version it would only be a finished, publishable version, not a work in progress).
EDIT: To clarify, I don't mind my editor being able to publish all publishable versions of an item, as long as he can only edit in the one language he has ownership of for that site and cannot make other versions publishable.
If not, is there a standard/best practice solution to this problem?
You can force Sitecore to publish only items to which a user has read/write access by changing the following settings in web.config:
Publishing.CheckSecurity = true
Publishing.RequireTargetDeleteRightWhenCheckingSecurity = false
Use Default or Custom Access Rights to Control Whether Users Can Publish an Item
This does mean that you need to separate your roles and permissions out to be quite granular, i.e. you will need separate roles for Site 1 English Editor, Site 1 French Editor, Site 2 English Editor etc.
EDIT: Thanks for the clarification above and I can see where your problem lies. As I mentioned in the comments above, maybe you can hide/disable the language option on the Publish dialog. Just been taking a look at Sitecore.Shell.Applications.Dialogs.Publish.PublishForm and as expected there are a few private methods you would have to replicate, but you can add your own logic to BuildLanguages() to get what you need. Just duplicate sitecore\shell\Applications\Dialogs\Publish\Publish.xml to sitecore\shell\Override and change the codebeside to point to your custom logic.
I hate to add fields to system templates normally, but maybe add another field to /sitecore/templates/System/Language to specify which roles/user can publish that language. You can use the Account Selector Field for this.
You can set security on workflow actions, thus preventing an action being performed by certain users. If that won't solve thing (because the same workflow is involved), you can always revert to implementing a workflow action yourself, this is easy.
I have handled this in the past by creating multiple accounts for the user. In your case, one for Site A in English and one for Site B in English and French. It may not be ideal, but i don't think creating extra languages is either. Good luck!