yolk / biggs Goto Github PK
View Code? Open in Web Editor NEWbiggs is a small ruby gem/rails plugin for formatting postal addresses from over 60 countries.
Home Page: http://yo.lk
License: MIT License
biggs is a small ruby gem/rails plugin for formatting postal addresses from over 60 countries.
Home Page: http://yo.lk
License: MIT License
Hello,
would be great adding the line2 for street name.
It's used by Stripe in the shipping object: https://stripe.com/docs/api/customers/object#customer_object-address
f = Biggs::Formatter.new
f.format("de", # <= ISO alpha 2 code
:recipient => "Yolk Sebastian Munz & Julia Soergel GbR",
:street => "Musterallee 12",
:street2 => "Yellow bulding",
:city => "Ausgedacht",
:zip => 12345,
:state => "Nowhere" # <= state/province/region
)
Biggs doesn't seem to be returning line breaks. An address like this:
Yolk Sebastian Munz & Julia Soergel GbR
Adalbertstr. 11
10999 Berlin
Germany
Displays like this:
Yolk Sebastian Munz & Julia Soergel GbR Adalbertstr. 11 10999 Berlin Germany
Is there a way to insert line breaks where appropriate?
Hi,
sorry for posting this as an issue, just wanted to make you aware - we've started a simialr project in which we make the address formtting templates independent of the language used for the parsing
https://github.com/lokku/address-formatting
perhaps there are ways to collaborate?
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.