Commit 5ddcc5f
fix(editor): exclude the feed's own text language from its translations
renderFeedTranslations let you add a translation in the same language as
feed.textLanguage — redundant (translating English to English) and
something the event form's own translations section already guards
against (excluded from suggestions, and re-checked on add in case someone
types the code directly rather than picking a suggestion). Ported the same
two-layer guard here, reading textLanguage live via a new getTextLanguage
param so it stays correct if the field changes while the view is open.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DrGeVXHTNNdPi7MCgSageG1 parent 2b1ff60 commit 5ddcc5f
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
| 1812 | + | |
1812 | 1813 | | |
1813 | 1814 | | |
1814 | 1815 | | |
| |||
1909 | 1910 | | |
1910 | 1911 | | |
1911 | 1912 | | |
1912 | | - | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
1913 | 1917 | | |
1914 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1915 | 1925 | | |
1916 | 1926 | | |
1917 | 1927 | | |
| |||
0 commit comments