Interface LocaleExtractor

All Known Implementing Classes:
DescriptorLocaleExtractor

public interface LocaleExtractor
Obtains the locale from a given file
Since:
4.0.0
Author:
joseross
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(org.craftercms.core.service.Context context, String path)
    Extract the locale for the given file
  • Method Details

    • extract

      Locale extract(org.craftercms.core.service.Context context, String path)
      Extract the locale for the given file
      Parameters:
      context - the current context
      path - the path of the file
      Returns:
      the locale