Commit Graph

4 Commits (23f6ec856f2fefb929448b7989a801172cdf4ebc)

Author SHA1 Message Date
Matt Jankowski 23f6ec856f Delegate Account#user_locale method and allow nil () 2017-05-08 23:10:50 +02:00
Matt Jankowski 9db85085a9 Language improvements, replace whatlanguage with CLD ()
* add failing en specs

* add cld2 gem

* Replace WhatLanguage with CLD
2017-05-03 16:59:31 +02:00
Matt Jankowski 1a0960ba88 [WIP] Html lang on statuses ()
* Add html lang attributes around statuses

* Remove urls from language detection
2017-04-22 04:26:25 +02:00
Matt Jankowski 4591c7dbdb Language detection refactor ()
* Extract detect_language to separate class

* Use default locale, not just en

* Add spec to confirm that whatlanguage cant identify empty string

* Allow account locale to override default in language detector

* PostStatusService supplies an account to detect language
2017-04-18 22:20:12 +02:00