[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-25 Thread Lydia_Pintscher
Lydia_Pintscher closed this task as "Resolved".

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup, Lydia_Pintscher
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-12 Thread Ladsgroup
Ladsgroup added a comment.


  Thanks for asking. Indeed. My opionin is that choosing one library over the 
other always depend on the usecase and lots of factors. vue-banana-i18n seems 
the obvious choice for us because we are not in the context of medawiki but for 
example for bridge, the other option might make more sense.

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-12 Thread Michael
Michael added a comment.


  In T267730#6620815 , 
@Ladsgroup wrote:
  
  > In T267730#6620779 , 
@Michael wrote:
  >
  >> Thanks for the PR!
  >>
  >> Could you explain a bit about why you chose `vue-banana-i18n` over 
`vue/i18n.js`?
  >
  > Mostly because 1- it's not librarified (only works inside mw or we should 
copy paste everything) and 2- it wouldn't work outside of context of mediawiki 
(look that it depends on "mw" global object)
  
  Ah don't get me wrong, I totally accept that `vue-banana-i18n` is the right 
choice for us, if you say that it is.
  But I'm not familiar with those two libraries (we used neither in Bridge (nor 
in Termbox or TaintedRef as far as I can tell)) and so it was important for me 
that it is actually stated in this investigation ticket why we are going for 
one over the other.
  
  Both for me and for other people that might not be familiar with those 
libraries and that might look at this ticket in the future. :)
  
  I'll have another look at the PR

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup, Michael
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-12 Thread Ladsgroup
Ladsgroup added a comment.


  In T267730#6620779 , 
@Michael wrote:
  
  > Thanks for the PR!
  >
  > Could you explain a bit about why you chose `vue-banana-i18n` over 
`vue/i18n.js`?
  
  Mostly because 1- it's not librarified (only works inside mw or we should 
copy paste everything) and 2- it wouldn't work outside of context of mediawiki 
(look that it depends on "mw" global object)

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-12 Thread Michael
Michael added a comment.


  Thanks for the PR!
  
  Could you explain a bit about why you chose `vue-banana-i18n` over 
`vue/i18n.js`?

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup, Michael
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-11 Thread Ladsgroup
Ladsgroup claimed this task.
Ladsgroup moved this task from To Do to Peer Review on the Wikidata Query 
Builder ( Wikidata Query Builder - sprint 4) board.
Ladsgroup added a comment.
Restricted Application added a project: User-Ladsgroup.


  I made a PR that actually implements i18n already: 
https://github.com/wmde/query-builder/pull/59
  
  Basically using 
https://howtocreateapps.com/fetch-and-display-json-html-javascript/ and 
https://howtocreateapps.com/vue-tutorial-json/ we make them available through 
API and just fill everything with it once loaded.

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

WORKBOARD
  https://phabricator.wikimedia.org/project/board/5079/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Ladsgroup, Aklapper, Michael, Hazizibinmahdi, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T267730: Investigate how to use translations from translatewiki in vue 4h max

2020-11-11 Thread Michael
Michael created this task.
Michael added projects: Wikidata, Wikidata Query Builder ( Wikidata Query 
Builder - sprint 4).
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  check other WMDE vue projects for how they do it
  
  - Data bridge 
https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/master/client/data-bridge
  - Tainted ref: 
https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/master/view/lib/wikibase-tainted-ref
  - Termbox v2: https://github.com/wikimedia/wikibase-termbox
  
  (Though we do not have to deal with ResourceLoader here)
  
  Options to investigate:
  
  - https://github.com/santhoshtr/vue-banana-i18n
  - https://github.com/wikimedia/mediawiki/blob/master/resources/src/vue/i18n.js

TASK DETAIL
  https://phabricator.wikimedia.org/T267730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Michael
Cc: Aklapper, Michael, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs