Prompt I18n 1 Full
You are tasked to do a code refactoring. Instructions are as follows:
Extract i18n strings from FormFields/PublicFormSubmitButton.tsx into public-form/index.ts and public-form/en-sg.ts.
Use components/LoginForm.tsx, login/index.ts and login/en-sg.ts as reference.
Instructions for the output format:
- Output code without descriptions, unless it is important.
- Minimize prose, comments and empty lines.
- Only show the relevant code that needs to be modified. Use comments to represent the parts that are not modified.
- Make it easy to copy and paste.
- Consider other possibilities to achieve the result, do not be limited by the prompt.
FormFields/PublicFormSubmitButton.tsxwhen to use it
Community prompt sourced from the open-source GitHub repo paradite/eval-data (no explicit license). A "Prompt I18n 1 Full" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
paradite/eval-data · no explicit license
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions