How to configure translate text extension on firebase to translate a text in a map field - firebase

I am trying to translate a text thats inside a map field.
This is how the collection is set up. I want to translate the "Text" field.
I tried "test.textDoc.*.text", but "dot notion" doesn't seem to work. I even tried "test/textDoc/{random}/text".

For the Translate Text extension to work, the text to translate has to be in a known, fixed field in your document. In our example, that'd be ocnuwen.text, but the ocnuwen cannot be variable.
Keep in mind that Firebase Extensions are open-source, so you can use the source code of that extension as a template for your own - and tweak it to your needs.

Related

How to give custom symbol in icomoon?

I need help how to update custom symbol using Icomoon. My requirement is to give custom glyph so that I can get unique unicode to use in html entity like placeholder etc. Please tell if you know how to update this highlight square symbol, custom ones not the Icomoon provided emoji set.
What I have tried -
Install custom font in local system.
Open word.
Use same font file to write something using those custom sysmbol.
tried to copy paste same symbol in Icomoon, but no luck.

Semantically searching in CSS files

Imagine I have a huge CSS file with e.g. more than 40000 lines, like https://cdn.jsdelivr.net/npm/semantic-ui#2.4.2/dist/semantic.css
I want to explore this file and for example search for class definitions containing "hidden" in their name. How can this be done? The word "hidden" can also appear in the definition of the class, so a normal text search is not sufficient. So I am looking for a tool which is able to interpret the CSS file and then allows me to semantically search in it, understanding the difference between "hidden" in a class name and "hidden" in a class definition.
Any tips on this? Thanks!
Update: I am using Visual Studio Code, if there is a matching extension for it, that would be great. A separate tool would also be fine.
I’m not sure which text editor/IDE you are using but most IDE’s allow you to search for classes by name, in which case you could just use “hidden” as the input. In IntelliJ, the command for this is Ctrl+N. You’ll have to check your editor or IDE for the shortcut but a simple Google search should give you the answer.

How to use notranslate in Google Translate text file

How to tell Google to not translate some text file in a text file? This is my sample text file:
"hp1": "Swipe to the right to reveal the left menu.",
"hp2": "(On desktop click and drag from left to right)",
"ht": "Welcome",
"TITLE": "Welcome",
"name":"Gowrisankar Reddy"
google converting above one like this
"hp1": "ఎడమ మెనుని బహిర్గతం చేయడానికి కుడివైపుకు స్వైప్ చేయండి.",
"hp2": "(డెస్క్టాప్ క్లిక్ చేసి ఎడమ నుండి కుడికి లాగండి)",
"ht": "స్వాగతం",
"TITLE": "స్వాగతం",
"పేరు": "గౌరీశంకర్ రెడ్డి"
I don't want to convert "name". How can I do that?
I am not using HTML, using text file only.
Thanks.
I am using google translate not used any code
Google Translator can normally skip translations by HTML tags with class notranslate.
But since it has a built-in html parser, as a hack, you can pretend one or more words are a tag.
<name> will not get translated
Another hack is to capitalize NAME

2sxc - Calculated Fields implementation

Can I make calculated fields in 2sxc?
Something like url path, but to use more fields and some additional logic?
Is the only way to do this custom property editor?
I also know for this video about url-path:
http://2sxc.org/en/Docs/Feature/feature/8305
But don't know where are sources for this editor that I can copy it and modify for my needs.
You would need to create a custom input type - see http://2sxc.org/en/Blog/post/custom-input-type-advanced-dynamic-data
the code for the url-path is here: https://github.com/2sic/eav-ui/blob/master/src/edit/fields/string/string-url-path.js

epydoc and reStructuredText change link name

I'm using reStructuredText with epydoc. How can I have the text of an internal link different than the target of the link? I have:
:todo: Figure out the `Product.manufacturer` relationship in `Product`.
The Product link looks fine and links to the Product object. The Product.manufacturer link goes to the proper member variable, but instead of the text being Product.manufacturer, I'd like to just be manufacturer.
I know this can be done if I use epytext, but we'd like to stick with reStructuredText so that we can switch documentation generators later if we want to.
I'm not familiar with epydoc myself, but the normal reStructuredText way would be this:
`manufacturer <Product.manufacturer>`_
Or, with Sphinx,
:attribute:`manufacturer <Product.manufacturer>`
Considering that epydoc seems to have overridden the default role to provide links, it will be being left to it. However, this is the most likely to work:
:todo: Figure out the `manufacturer <Product.manufacturer>` relationship in `Product`.

Resources