This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract English and specified target language translations, and add placeholders for missing target language translations | |
# Usage: | |
# Full output: jq --arg target "zh-Hans" -f extract.jq Localizable.xcstrings | |
# Placeholder-only output: jq --arg target "zh-Hans" --arg filter "true" -f extract.jq Localizable.xcstrings | |
# Parameters: | |
# - target: Target language code (e.g., zh-Hans, zh-Hant, ja, ko, fr, de, etc.) | |
# - filter: Optional, set to "true" to output only entries that need translations (default: false) | |
( | |
if ($ARGS.named | has("target")) then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from pathlib import Path | |
import numpy as np | |
import torch | |
sys.path.append("./src") | |
from src.model import PatchedTimeSeriesDecoder, TimesFMConfig |