Rich Text Markup from Google Sheets

Hello,

I have a Feature Request (which I solved, hence the feedback tag). We use localization with google sheets in a project at work. The thing is, we want to use text markup features like Bold, Italic etc. from Google and convert them into TMPro Rich Text as we only use TMPRo UI Elements in our Projects.

I actually already solved this in another C# Project, which uses the same Google API as Localization feature does and would actually really like to provide my information to the Localization Package development team. I wonder if they would be interested in it and if someone would be able to provide me with a direct contact. (I have Source code etc. prepared)

~Syd

Hi,
Sounds interesting. Im a direct contact ;), you can DM me.

This would indeed be a very helpful thing for our apps, where customers edit the spreadsheets for their apps themselves. They don’t wanna learn TMPro Tags but just use the spreadsheet formatting.
Can you share your solution? I assume you have to make a custom localisation package for that?

I have also tried to work with the GoogleDocs extension from Sythelux. Basically it works fine, it just adds two fields to the request.Fields that are loaded from the GDoc:

var fields = ‘sheets.properties.gridProperties.rowCount,sheets.data.rowData.values.formattedValue,sheets.data.rowData.values.note’;
if (convertCellFormatToRichText)
  fields += ‘,sheets.data.rowData.values.effectiveFormat,sheets.data.rowData.values.textFormatRuns’;

and then evaluates these. The big disadvantage of this is that the GoogleSheets.cs file from the Localization package has to be changed. With every update of the package again. :frowning: Its very bad.

Hence my question, is it somehow possible to access the two fields EffectiveFormat and TextFormatRuns of a cell of a sheet with version 1.5.2 of the localisation package?

Side note:
Lengthy attempts to adapt the GooglePlugin or the package by inheritance or extension have unfortunately not been successful so far.
After further study of the reference, I was able to find this hint under Google-Sheets-Syncing-StringTableCollections: >A common use for a custom column is to support additional metadata< and I could imagine that there is a possibility with Property FormatCache in conjunction with Smart Tags. Would that be a possible way?

Thanks for any help!
Rob

Hi,
Thanks for the suggestion. We will look at adding this support in the future. We avoided providing direct access to the google apis as they can change and we wanted to provide a simpler API to work with. The google one is not the most user friendly.
For now I would continue updating the package, we dont do many releases so it shouldn’t b
e too much of a hassle.