You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ npm run watch # Dev mode with hot reload
50
50
51
51
**DRY:** Abstract repeated code blocks into shared helpers.
52
52
53
-
**i18n:** Wrap all user-facing strings in translation functions (`$_(...)` or `$:_('...')`). Use named placeholders (`_('Hello, %(name)s')`) and`$:_()` for HTML content to prevent double-escaping.
53
+
**i18n:** Wrap all user-facing strings in translation functions (`$_(...)` or `$:_('...')`). Do not use string concatenation to construct user-visible strings; prefer a single parameterized translation string instead. Use named placeholders (`_('Hello, %(name)s')`) rather than positional placeholders such as `%s` so translators have more context. Use`$:_()` for HTML content to prevent double-escaping.
54
54
55
55
**FastAPI:** When touching FastAPI code, follow [FastAPI best practices](https://raw.githubusercontent.com/fastapi/fastapi/refs/heads/master/fastapi/.agents/skills/fastapi/SKILL.md) and ensure compliance with their recommendations. When in doubt, reference other parts of our FastAPI codebase for how we do things, as we generally follow established best practices.
0 commit comments