Skip to content

Commit

Permalink
Change language property from Locale to String for decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreiwald committed Jan 20, 2025
1 parent 5885fad commit ab69413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ extension ATProtoBluesky {
imageData: caption.file
)

captionReferences.append(AppBskyLexicon.Embed.VideoDefinition.Caption(language: caption.language, fileBlob: blobReference.blob))
captionReferences.append(AppBskyLexicon.Embed.VideoDefinition.Caption(language: caption.language.identifier, fileBlob: blobReference.blob))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension AppBskyLexicon.Embed {
public let type: String = "app.bsky.embed.video#caption"

/// The language the captions are written in.
public let language: Locale
public let language: String

/// The caption file itself.
///
Expand Down

0 comments on commit ab69413

Please sign in to comment.