chromium/chrome/services/on_device_translation/public/mojom/translator.mojom

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module on_device_translation.mojom;

// The abstraction that does the real translation work.
interface Translator {
  // Translates the input from the source language to the target language.
  // The source/target languages are specified when the `Translator` is
  // initialized.
  Translate(string input) => (string output);
};