Skip to content

Release 2.3.0

Latest

Choose a tag to compare

@SkyLundy SkyLundy released this 12 Jan 18:40

New features

  • Most Fluency module methods are now hookable:
    • Fluency::clearAllCaches()
    • Fluency::clearTranslatableLanguagesCache()
    • Fluency::clearTranslationCache()
    • Fluency::getCachedTranslationsCount()
    • Fluency::getClientData()
    • Fluency::getConfiguredLanguages()
    • Fluency::getLanguageCode()
    • Fluency::getLocalizedStrings() (new method)
    • Fluency::getLocalizedStringsFor() (new method)
    • Fluency::getTranslationApiUsage()
    • Fluency::renderAltLanguageMetaLinkTags()
    • Fluency::renderLanguageLinks()
    • Fluency::renderLanguageSelect()
    • Fluency::translatableLanguagesAreCached()
    • Fluency::translate()
  • Changed access to localized strings via new methods in Fluency rather than direct from the
    FluencyLocalization object to make hooking possible. UI strings can be modified at runtime where
    desired.
  • Added the ability to set a new default language in an AllConfiguredLanguagesData object instance.
    Instructions for usage added to README.md. Credit to @ivangretsky for the feature request
  • Fix formatting in this CHANGELOG file so that lines of text follow a uniform max-width.
  • Correct example href/hreflang markup for meta link tags in README.md