mirror of
https://github.com/typst/typst
synced 2025-08-20 09:49:02 +08:00
Compare commits
No commits in common. "88e451b3dc5c23f52d4fe69d1c6abb4ca9463b1a" and "22a57fcf5c52cc0e961368a6d6fb7e9a82312b48" have entirely different histories.
88e451b3dc
...
22a57fcf5c
@ -199,7 +199,7 @@ impl PackageStorage {
|
||||
// The place at which the specific package version will live in the end.
|
||||
let package_dir = base_dir.join(format!("{}", spec.version));
|
||||
|
||||
// To prevent multiple Typst instances from interfering, we download
|
||||
// To prevent multiple Typst instances from interferring, we download
|
||||
// into a temporary directory first and then move this directory to
|
||||
// its final destination.
|
||||
//
|
||||
|
@ -22,6 +22,8 @@ pub(crate) fn build_metadata(gc: &GlobalContext) -> Metadata {
|
||||
.keywords(gc.document.info.keywords.iter().map(EcoString::to_string).collect())
|
||||
.authors(gc.document.info.author.iter().map(EcoString::to_string).collect());
|
||||
|
||||
let lang = gc.languages.iter().max_by_key(|(_, &count)| count).map(|(&l, _)| l);
|
||||
|
||||
if let Some(lang) = lang {
|
||||
metadata = metadata.language(lang.as_str().to_string());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user