How to translate i18n value from tag in html?

I want to Translate a custom button name using i18n. I tried like this app/code/My_vendor/My_module/i18n/ar_SA.csv “I am the gift Receiver”,”أنا المتلقي هدية” The affect should take place in below html file app/code/My_vendor/My_module/view/frontend/web/templates/actions.html <button click=”datafill”> <span data-bind=”i18n: ‘I am the gift Receiver'”></span> </button> Note: I also tried translate but it also didn’t work for me. Question:…

How to query solr server from php in Drupal 8

How do you query solr server from php in Drupal 8? I have installed search_api, search_api_solr and search_api_attachments. Also have Solr v.8.4.0 installed. I installed php SolrClient for Centos 7 following this guidance: https://stackoverflow.com/questions/22959330/fatal-error-class-solrclient-not-found , but I still get “Class ‘SolrClient’ not found” every time I run new SolrClient($options); I have located documentation on querying…