├── .gitignore ├── .travis.yml ├── LICENSE.md ├── composer.json ├── config ├── .gitkeep └── translator.php ├── database └── migrations │ ├── .gitkeep │ ├── 2013_07_25_145943_create_languages_table.php │ ├── 2013_07_25_145958_create_translations_table.php │ └── 2016_06_02_124154_increase_locale_length.php ├── phpunit.xml ├── readme.md ├── src ├── Cache │ ├── CacheRepositoryInterface.php │ ├── RepositoryFactory.php │ ├── SimpleRepository.php │ └── TaggedRepository.php ├── Commands │ ├── CacheFlushCommand.php │ └── FileLoaderCommand.php ├── Facades │ ├── TranslationCache.php │ └── UriLocalizer.php ├── Loaders │ ├── CacheLoader.php │ ├── DatabaseLoader.php │ ├── FileLoader.php │ ├── Loader.php │ └── MixedLoader.php ├── Middleware │ └── TranslationMiddleware.php ├── Models │ ├── Language.php │ └── Translation.php ├── Repositories │ ├── LanguageRepository.php │ ├── Repository.php │ └── TranslationRepository.php ├── Routes │ └── ResourceRegistrar.php ├── Traits │ ├── Translatable.php │ └── TranslatableObserver.php ├── TranslationServiceProvider.php └── UriLocalizer.php └── tests ├── .gitkeep ├── Cache ├── RepositoryFactoryTest.php ├── SimpleRepositoryTest.php ├── TaggedRepositoryTest.php └── TranslationCacheTest.php ├── Commands ├── FlushTest.php └── LoadTest.php ├── Loaders ├── CacheLoaderTest.php ├── DatabaseLoaderTest.php ├── FileLoaderTest.php ├── LoadTest.php └── MixedLoaderTest.php ├── Localizer ├── CleanUrlTest.php ├── GetLocaleFromUrlTest.php └── LocalizeUriTest.php ├── Middleware └── TranslationMiddlewareTest.php ├── Repositories ├── LanguageRepositoryTest.php └── TranslationRepositoryTest.php ├── Routes └── ResourceRouteTest.php ├── TestCase.php ├── Traits └── TranslatableTest.php └── lang ├── ca └── test.php ├── en ├── auth.php ├── empty.php └── welcome │ └── page.php ├── es ├── auth.php └── welcome │ └── page.php └── vendor └── package ├── en └── example.php └── es └── example.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/LICENSE.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/composer.json -------------------------------------------------------------------------------- /config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/translator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/config/translator.php -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/migrations/2013_07_25_145943_create_languages_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/database/migrations/2013_07_25_145943_create_languages_table.php -------------------------------------------------------------------------------- /database/migrations/2013_07_25_145958_create_translations_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/database/migrations/2013_07_25_145958_create_translations_table.php -------------------------------------------------------------------------------- /database/migrations/2016_06_02_124154_increase_locale_length.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/database/migrations/2016_06_02_124154_increase_locale_length.php -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/phpunit.xml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/readme.md -------------------------------------------------------------------------------- /src/Cache/CacheRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Cache/CacheRepositoryInterface.php -------------------------------------------------------------------------------- /src/Cache/RepositoryFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Cache/RepositoryFactory.php -------------------------------------------------------------------------------- /src/Cache/SimpleRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Cache/SimpleRepository.php -------------------------------------------------------------------------------- /src/Cache/TaggedRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Cache/TaggedRepository.php -------------------------------------------------------------------------------- /src/Commands/CacheFlushCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Commands/CacheFlushCommand.php -------------------------------------------------------------------------------- /src/Commands/FileLoaderCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Commands/FileLoaderCommand.php -------------------------------------------------------------------------------- /src/Facades/TranslationCache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Facades/TranslationCache.php -------------------------------------------------------------------------------- /src/Facades/UriLocalizer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Facades/UriLocalizer.php -------------------------------------------------------------------------------- /src/Loaders/CacheLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Loaders/CacheLoader.php -------------------------------------------------------------------------------- /src/Loaders/DatabaseLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Loaders/DatabaseLoader.php -------------------------------------------------------------------------------- /src/Loaders/FileLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Loaders/FileLoader.php -------------------------------------------------------------------------------- /src/Loaders/Loader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Loaders/Loader.php -------------------------------------------------------------------------------- /src/Loaders/MixedLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Loaders/MixedLoader.php -------------------------------------------------------------------------------- /src/Middleware/TranslationMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Middleware/TranslationMiddleware.php -------------------------------------------------------------------------------- /src/Models/Language.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Models/Language.php -------------------------------------------------------------------------------- /src/Models/Translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Models/Translation.php -------------------------------------------------------------------------------- /src/Repositories/LanguageRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Repositories/LanguageRepository.php -------------------------------------------------------------------------------- /src/Repositories/Repository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Repositories/Repository.php -------------------------------------------------------------------------------- /src/Repositories/TranslationRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Repositories/TranslationRepository.php -------------------------------------------------------------------------------- /src/Routes/ResourceRegistrar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Routes/ResourceRegistrar.php -------------------------------------------------------------------------------- /src/Traits/Translatable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Traits/Translatable.php -------------------------------------------------------------------------------- /src/Traits/TranslatableObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/Traits/TranslatableObserver.php -------------------------------------------------------------------------------- /src/TranslationServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/TranslationServiceProvider.php -------------------------------------------------------------------------------- /src/UriLocalizer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/src/UriLocalizer.php -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Cache/RepositoryFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Cache/RepositoryFactoryTest.php -------------------------------------------------------------------------------- /tests/Cache/SimpleRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Cache/SimpleRepositoryTest.php -------------------------------------------------------------------------------- /tests/Cache/TaggedRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Cache/TaggedRepositoryTest.php -------------------------------------------------------------------------------- /tests/Cache/TranslationCacheTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Cache/TranslationCacheTest.php -------------------------------------------------------------------------------- /tests/Commands/FlushTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Commands/FlushTest.php -------------------------------------------------------------------------------- /tests/Commands/LoadTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Commands/LoadTest.php -------------------------------------------------------------------------------- /tests/Loaders/CacheLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Loaders/CacheLoaderTest.php -------------------------------------------------------------------------------- /tests/Loaders/DatabaseLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Loaders/DatabaseLoaderTest.php -------------------------------------------------------------------------------- /tests/Loaders/FileLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Loaders/FileLoaderTest.php -------------------------------------------------------------------------------- /tests/Loaders/LoadTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Loaders/LoadTest.php -------------------------------------------------------------------------------- /tests/Loaders/MixedLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Loaders/MixedLoaderTest.php -------------------------------------------------------------------------------- /tests/Localizer/CleanUrlTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Localizer/CleanUrlTest.php -------------------------------------------------------------------------------- /tests/Localizer/GetLocaleFromUrlTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Localizer/GetLocaleFromUrlTest.php -------------------------------------------------------------------------------- /tests/Localizer/LocalizeUriTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Localizer/LocalizeUriTest.php -------------------------------------------------------------------------------- /tests/Middleware/TranslationMiddlewareTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Middleware/TranslationMiddlewareTest.php -------------------------------------------------------------------------------- /tests/Repositories/LanguageRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Repositories/LanguageRepositoryTest.php -------------------------------------------------------------------------------- /tests/Repositories/TranslationRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Repositories/TranslationRepositoryTest.php -------------------------------------------------------------------------------- /tests/Routes/ResourceRouteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Routes/ResourceRouteTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Traits/TranslatableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/Traits/TranslatableTest.php -------------------------------------------------------------------------------- /tests/lang/ca/test.php: -------------------------------------------------------------------------------- 1 | 'Entry should not be imported', 5 | ]; 6 | -------------------------------------------------------------------------------- /tests/lang/en/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/lang/en/auth.php -------------------------------------------------------------------------------- /tests/lang/en/empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/lang/en/empty.php -------------------------------------------------------------------------------- /tests/lang/en/welcome/page.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/lang/en/welcome/page.php -------------------------------------------------------------------------------- /tests/lang/es/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Waavi/translation/HEAD/tests/lang/es/auth.php -------------------------------------------------------------------------------- /tests/lang/es/welcome/page.php: -------------------------------------------------------------------------------- 1 | 'Bienvenido', 5 | ]; 6 | -------------------------------------------------------------------------------- /tests/lang/vendor/package/en/example.php: -------------------------------------------------------------------------------- 1 | 'Vendor text', 5 | ]; 6 | -------------------------------------------------------------------------------- /tests/lang/vendor/package/es/example.php: -------------------------------------------------------------------------------- 1 | 'Texto proveedor', 5 | ]; 6 | --------------------------------------------------------------------------------