Package io.codemodder.codemods
Class AddMissingI18nCodemod
java.lang.Object
io.codemodder.RawFileChanger
io.codemodder.codemods.AddMissingI18nCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="pixee:java/missing-i18n",
reviewGuidance=MERGE_AFTER_CURSORY_REVIEW)
public final class AddMissingI18nCodemod
extends io.codemodder.RawFileChanger
This codemod finds missing i18n keys in property files and adds them to the file, using an LLM to
generate the missing values.
-
Field Summary
Fields inherited from class io.codemodder.RawFileChanger
reporter
-
Constructor Summary
ConstructorsConstructorDescriptionAddMissingI18nCodemod
(software.amazon.awssdk.services.translate.TranslateClient translateClient) -
Method Summary
Methods inherited from class io.codemodder.RawFileChanger
getDescription, getIndividualChangeDescription, getReferences, getSourceControlUrl, getSummary
-
Constructor Details
-
AddMissingI18nCodemod
@Inject public AddMissingI18nCodemod(software.amazon.awssdk.services.translate.TranslateClient translateClient)
-
-
Method Details
-
visitFile
public List<io.codemodder.CodemodChange> visitFile(io.codemodder.CodemodInvocationContext context) throws IOException - Specified by:
visitFile
in classio.codemodder.RawFileChanger
- Throws:
IOException
-