Page MenuHomePhabricator

Retrieve language code property data from the API
Closed, ResolvedPublic

Description

As a developer implementing the spelling variant I want to use the API in order to retrieve the language code of the spelling variant

Problem:
In order to assess whether the spelling variant may be inferred or not, we want to use the API to query the language code of the Lexeme's language.

Acceptance criteria:

  • The repository should be created in the data-access directory
  • The repository should retrieve the language code property data from the API

Open questions:

  • Do we save the language code to the store at all? if so, is it part of this task? → No, I think that is part of T305542
  • Is error handling for possible errors returning from the API part of this task? → I would probably log them to the console, but then either return false or null

Event Timeline

I added my thoughts regarding the open questions