Class AddMissingI18nCodemod

java.lang.Object
io.codemodder.RawFileChanger
io.codemodder.codemods.AddMissingI18nCodemod
All Implemented Interfaces:
io.codemodder.CodeChanger

@Codemod(id="pixee:java/missing-i18n", importance=MEDIUM, 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

    Constructors
    Constructor
    Description
    AddMissingI18nCodemod(software.amazon.awssdk.services.translate.TranslateClient translateClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.codemodder.CodemodFileScanningResult
    visitFile(io.codemodder.CodemodInvocationContext context)
     

    Methods inherited from class io.codemodder.RawFileChanger

    getDescription, getIndividualChangeDescription, getReferences, getSummary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.codemodder.CodeChanger

    shouldRun
  • Constructor Details

    • AddMissingI18nCodemod

      @Inject public AddMissingI18nCodemod(software.amazon.awssdk.services.translate.TranslateClient translateClient)
  • Method Details

    • visitFile

      public io.codemodder.CodemodFileScanningResult visitFile(io.codemodder.CodemodInvocationContext context) throws IOException
      Specified by:
      visitFile in class io.codemodder.RawFileChanger
      Throws:
      IOException