Skip to main content

submit

Function submit 

Source
pub fn submit(
    game_key: &str,
    pack_name: &str,
    src_lang: &str,
    language: &str,
) -> Result<SubmitOutcome>
Expand description

Submit a saved translation to the Translation Hub, or update its open pull request.

If GitHub rejects the stored token, the user is signed out so the next attempt asks them to sign in again.

§Arguments

  • game_key - Key of the game the translation belongs to.
  • pack_name - Name of the pack the translation is for.
  • src_lang - Source language code.
  • language - Target language code.

§Errors

Returns an error if the translation can’t be loaded, or the submission fails for any reason other than the sign-in.