Skip to content

Commit

Permalink
[PR-18385] Update docs for pre-fill country code based on IP address (#…
Browse files Browse the repository at this point in the history
…274)

* [PR-18385]: added phone input info

* Update source/campaigns/localization.rst

* Update Rakefile

Co-authored-by: Bohdan Zhuravel <[email protected]>
  • Loading branch information
ilovepinkpony1 and zhuravel authored Jan 24, 2023
1 parent d17fa45 commit 5daf571
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: ruby -run -e httpd -- --port=5000 build/html
web: ruby -run -e httpd -- --port=5001 build/html
guard: bundle exec guard
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ end
desc 'Make standalone HTML files'
task :preview => [:clean, :build]

desc 'Run the server on localhost:5000 and open a browser'
desc 'Run the server on localhost:5001 and open a browser'
task :server => :preview do
sh '(sleep 2 && open "http://localhost:5000")&'
sh '(sleep 2 && open "http://localhost:5001")&'
sh 'bundle exec foreman start'
end

Expand Down
Binary file added source/.DS_Store
Binary file not shown.
Binary file added source/_static/.DS_Store
Binary file not shown.
Binary file added source/_static/img/.DS_Store
Binary file not shown.
Binary file added source/_static/img/phone-input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions source/campaigns/localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ Campaign Localization is copied when campaign is copied, so you are able to use
2. Build templates with localization support
3. Make a copy of the campaign
4. Translate localization in a copy to different language.

Campaigns with phone input have country automatically detected based on user IP:

.. image:: /_static/img/phone-input.png

0 comments on commit 5daf571

Please sign in to comment.