INNER CODE UNIT · Python
main
pa-jesusf/KikoFlu · scripts/generate_tag_translations.py:141
def main():
print("Fetching tags from API...", file=sys.stderr)
tags = fetch_tags()
print(f"Fetched {len(tags)} tags", file=sys.stderr)
dart_code = generate_dart(tags)
output_path = "lib/src/utils/tag_translations.dart"
with open(output_path, 'w', encoding='utf-8') as f:
f.write(dart_code)
print(f"Generated {output_path} with {len(tags)} tags", file=sys.stderr)
if __name__ == '__main__':
main()