Add Spanish and Japanese support; Add canonicalization & validation.
- Enables Spanish and Japanese as a supported language in the browser
process for Prompt and Summarizer APIs. - Adds Feature Params for kAISummarizationAPI and kAIPromptAPI
to control enabled languages. - Adds validation and canonicalization of language tags for
expectedInputs and expectedOutputs in LanguageModel availability()
and create(). Adds web platform tests to test the behavior.
Bug: 422210273, 422211699
Change-Id: I35d152e05119382ce156c715c72d297de59c210d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6628446
Reviewed-by: Mike Wasserman [email protected]
Commit-Queue: Brad Triebwasser [email protected]
Cr-Commit-Position: refs/heads/main@{#1485302}