delfimov / translate Goto Github PK
View Code? Open in Web Editor NEWPHP translation library
License: MIT License
PHP translation library
License: MIT License
hi!
at first: thank you for having the pull request accepted and merged into master and created a new release for it.
unfortunatly, the new version of this package is not available on packagist. a look there tells me:
"delfimov/translate (Legacy Auto-Update, Needs Attention)"
https://packagist.org/about#how-to-update-packages suggests to add web hooks calls or log in into packagist with github access and let packagist automatically add the web hook calls.
could you please have a look there?
spacibo!
greetz
Hello!
When i use the following code to initialize translate:
$t = new DElfimov\Translate\Translate(
new DElfimov\Translate\Loader\PhpFilesLoader(realpath($_SERVER["DOCUMENT_ROOT"])."/translations"),
["default" => $_ENV["DEFAULT_LANGUAGE"], "available" => explode("|", $_ENV["AVAILABALE_LANGUAGE"])]
);
I get the following error:
PHP Fatal error: Declaration of DElfimov\\Translate\\Loader\\LoaderInterface::has($language) must be compatible with Psr\\Container\\ContainerInterface::has(string $id): bool
Am i missing a module or something like that?
Thank you in advance!
hi dmitry,
i just started another project, thought about translations and how easy it is to use your project.
so i required it, made everything ready and now it is running under php 8.1 and 8.2.
spacibo and greetings in these awkward times.
peace!
hi
i stumbled today over this nice repository and am willing to use this package.
after setting up successfully the first translations, a feature wish came up :)
it would be awesome to provide a mechanism that logs missing translations.
the psr-3 standard may help or directly use the awesome monolog package https://github.com/Seldaek/monolog
if you want me to do this task, tell me more. otherwise it would be great to have this feature in a future release :)
thx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.