Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Features] Let the script checks for available languages in the Spreadsheet #28

Open
ordonezgs opened this issue Jul 17, 2020 · 3 comments
Labels
enhancement New feature or request feature_request question Further information is requested

Comments

@ordonezgs
Copy link
Collaborator

The script actually only allows to have a stored var of available language. Let's look for a way to check the spreadsheet (this requires to calls to the api) for all the sheets (which are the languages).

@ordonezgs ordonezgs added the enhancement New feature or request label Jul 17, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@ordonezgs
Copy link
Collaborator Author

ordonezgs commented Jul 25, 2020

[Doing] ->> Need time

Generalized Proposed Solution:

var datos = null
var datos1 = []
function llamar(){
$.get("https://sheets.googleapis.com/v4/spreadsheets/1kW09NbMJUYU0nNRYUmwsoushZo7I-oQShCfr8hnr_hs/?key=ANY_KEY",function (data){
  datos=data;
  $.each(datos.sheets, function(k,v){
 if (k == 0){
   console.log("Default sheet not inserted into the Array")
 }else{   datos1.push(datos.sheets[k].properties.title);
      }
  }
        );
}
     );
}
llamar()

Returns:
datos1 = ["es-419", "de", "fr", "nl", "pt-BR"]

Repository owner deleted a comment from allcontributors bot Jul 25, 2020
@ordonezgs ordonezgs added In progress Currently working on it question Further information is requested and removed In progress Currently working on it labels Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature_request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant